Skip to content

Commit

Permalink
Set start block to preset one if higher
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetrun5 committed Aug 9, 2024
1 parent 46ce0b7 commit a9abebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chains/evm/message/stateRoot.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (h *StateRootHandler) HandleMessage(m *message.Message) (*proposal.Proposal
if err != nil {
return nil, err
}
if startBlock.Cmp(big.NewInt(0)) == 0 {
if startBlock.Cmp(big.NewInt(0)) == 0 || h.startBlock.Cmp(startBlock) == 1 {
startBlock = h.startBlock
}
endBlock := big.NewInt(int64(block.Data.Deneb.Message.Body.ExecutionPayload.BlockNumber))
Expand Down

0 comments on commit a9abebf

Please sign in to comment.