File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ contract BLSSignatureChecker is IBLSSignatureChecker {
107
107
"BLSSignatureChecker.checkSignatures: input nonsigner length mismatch "
108
108
);
109
109
110
+ require (referenceBlockNumber <= uint32 (block .number ), "BLSSignatureChecker.checkSignatures: invalid reference block " );
111
+
110
112
// This method needs to calculate the aggregate pubkey for all signing operators across
111
113
// all signing quorums. To do that, we can query the aggregate pubkey for each quorum
112
114
// and subtract out the pubkey for each nonsigning operator registered to that quorum.
@@ -182,7 +184,7 @@ contract BLSSignatureChecker is IBLSSignatureChecker {
182
184
// is within withdrawalDelayBlocks
183
185
if (staleStakesForbidden) {
184
186
require (
185
- registryCoordinator.quorumUpdateBlockNumber (uint8 (quorumNumbers[i])) + withdrawalDelayBlocks >= block . number ,
187
+ registryCoordinator.quorumUpdateBlockNumber (uint8 (quorumNumbers[i])) + withdrawalDelayBlocks >= referenceBlockNumber ,
186
188
"BLSSignatureChecker.checkSignatures: StakeRegistry updates must be within withdrawalDelayBlocks window "
187
189
);
188
190
}
You can’t perform that action at this time.
0 commit comments