Skip to content

Commit 974265e

Browse files
authored
chore: fix based sequencer terminology in state comments (#3387)
Signed-off-by: pengqima <pengqima@outlook.com>
1 parent b4b895b commit 974265e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

types/state.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ func (s State) AssertValidSequence(header *SignedHeader) error {
136136
return fmt.Errorf("%w - got: %v, last: %v", ErrInvalidBlockTime, headerTime, s.LastBlockTime)
137137
}
138138

139-
// Trick to support the switch from a base sequencer to a normal syncing node.
140-
// Based sequencers do not sign ehaders, meaning the last header hash will be different from the
141-
// newly derived header hash when a base sequencer have switched to a syncing node
139+
// Trick to support the switch from a based sequencer to a normal syncing node.
140+
// Based sequencers do not sign headers, meaning the last header hash will be different from the
141+
// newly derived header hash when a based sequencer has switched to a syncing node.
142142
if !bytes.Equal(header.LastHeaderHash, s.LastHeaderHash) {
143143
if lastHeaderHashErrCount == 1 {
144144
return fmt.Errorf("%w - got: %x, want: %x", ErrInvalidLastHeaderHash, header.LastHeaderHash, s.LastHeaderHash)

0 commit comments

Comments
 (0)