Skip to content

Commit bf6b8cb

Browse files
wadealexcstevengpsanantChaoticWalrus
authored
chore: merge master into m2-mainnet (#79)
--------- Co-authored-by: steven <[email protected]> Co-authored-by: gpsanant <[email protected]> Co-authored-by: ChaoticWalrus <[email protected]> Co-authored-by: Gautham Anant <[email protected]>
1 parent beba12d commit bf6b8cb

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ node_modules/
1111

1212
# Dotenv file
1313
.env
14+
15+
16+
*.DS_Store

CONTRIBUTING.md

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ npm install
1717

1818
npx husky install
1919

20-
npx husky add .husky/commit-msg 'npx --no -- commitlint --edit ${1}'
21-
2220
forge install
2321
```
2422

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ The current implementation of this contract is the [BLSSignatureChecker](./docs/
9090

9191
| Name | Solidity | Contract | Notes |
9292
| ------------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------- | ----- |
93-
| BLSOperatorStateRetriever | BLSOperatorStateRetriever.sol | [`0xf60a...7251`](https://goerli.etherscan.io/address/0xf60a330F8c1A0C0ecf3Eab1D54b00F3a8FE37251) | |
94-
| BLSPubkeyCompendium | BLSPubkeyCompendium.sol | [`0xdd53...B9Bb`](https://goerli.etherscan.io/address/0xdd53D44257d5F4EB0ca60F60d88827C1b433B9Bb) | |
93+
| BLSOperatorStateRetriever | BLSOperatorStateRetriever.sol | [`0x737D...A3a3`](https://goerli.etherscan.io/address/0x737Dd62816a9392e84Fa21C531aF77C00816A3a3) | |
94+
| BLSPubkeyCompendium | BLSPubkeyCompendium.sol | [`0xc81d...1b19`](https://goerli.etherscan.io/address/0xc81d3963087Fe09316cd1E032457989C7aC91b19) | |
9595

9696
## Further reading
9797

src/BLSSignatureChecker.sol

+4-2
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,13 @@ contract BLSSignatureChecker is IBLSSignatureChecker {
132132
stakeRegistry.getTotalStakeAtBlockNumberFromIndex(quorumNumber, referenceBlockNumber, nonSignerStakesAndSignature.totalStakeIndices[quorumNumberIndex]);
133133
// copy total stake to signed stake
134134
quorumStakeTotals.signedStakeForQuorum[quorumNumberIndex] = quorumStakeTotals.totalStakeForQuorum[quorumNumberIndex];
135+
136+
// keep track of the nonSigners index in the quorum
137+
uint32 nonSignerForQuorumIndex = 0;
138+
135139
// loop through all nonSigners, checking that they are a part of the quorum via their quorumBitmap
136140
// if so, load their stake at referenceBlockNumber and subtract it from running stake signed
137141
for (uint32 i = 0; i < nonSignerStakesAndSignature.nonSignerPubkeys.length; i++) {
138-
// keep track of the nonSigners index in the quorum
139-
uint32 nonSignerForQuorumIndex = 0;
140142
// if the nonSigner is a part of the quorum, subtract their stake from the running total
141143
if (BitmapUtils.numberIsInBitmap(nonSignerQuorumBitmaps[i], quorumNumber)) {
142144
quorumStakeTotals.signedStakeForQuorum[quorumNumberIndex] -=

0 commit comments

Comments
 (0)