We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cefab14 commit bf58a50Copy full SHA for bf58a50
src/BLSSignatureChecker.sol
@@ -178,11 +178,12 @@ contract BLSSignatureChecker is IBLSSignatureChecker {
178
*/
179
{
180
uint256 withdrawalDelayBlocks = delegation.withdrawalDelayBlocks();
181
+ bool _staleStakesForbidden = staleStakesForbidden;
182
183
for (uint256 i = 0; i < quorumNumbers.length; i++) {
184
// If we're disallowing stale stake updates, check that each quorum's last update block
185
// is within withdrawalDelayBlocks
- if (staleStakesForbidden) {
186
+ if (_staleStakesForbidden) {
187
require(
188
registryCoordinator.quorumUpdateBlockNumber(uint8(quorumNumbers[i])) + withdrawalDelayBlocks >= referenceBlockNumber,
189
"BLSSignatureChecker.checkSignatures: StakeRegistry updates must be within withdrawalDelayBlocks window"
0 commit comments