Skip to content

Commit 8f7cb93

Browse files
author
fletcher.fan
committed
bypass cache at fork boundary for correct validator set
1 parent eba200c commit 8f7cb93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

node/core/sequencers.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ func (e *Executor) sequencerSetUpdates(height uint64) ([][]byte, error) {
6565
if err != nil {
6666
return nil, err
6767
}
68-
if e.currentSeqHash != nil && bytes.Equal(e.currentSeqHash[:], seqHash[:]) {
68+
// Don't use cache at fork height boundary to ensure correct blsKey validation behavior change
69+
atForkBoundary := height == blsKeyCheckForkHeight || height == blsKeyCheckForkHeight+1
70+
if e.currentSeqHash != nil && bytes.Equal(e.currentSeqHash[:], seqHash[:]) && !atForkBoundary {
6971
return e.nextValidators, nil
7072
}
7173

0 commit comments

Comments
 (0)