Skip to content

Commit

Permalink
chore: fix spec pseudocode (#30)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryo Sato <[email protected]>
  • Loading branch information
3100 authored Oct 2, 2023
1 parent 54be95a commit 5413534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function verifySeals(
chainId = getChainId()
epoch = headers[0].number / BLOCK_PER_EPOCH
// Validator set changes take place at the (epoch+N/2) blocks. (N is the size of validatorset before epoch block)
checkpoint = epoch * headers[0].number + checkpoint(previousValidators)
checkpoint = epoch * BLOCK_PER_EPOCH + checkpoint(previousValidators)
for header in headers {
// verifySeal checks whether the signature contained in the header satisfies the consensus protocol requirements
if header.number >= checkpoint {
Expand Down

0 comments on commit 5413534

Please sign in to comment.