Skip to content

Commit

Permalink
Block reexecutor should not try to reexecute genesis block
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshvanahalli committed May 7, 2024
1 parent 5613359 commit 04b9b37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks_reexecutor/blocks_reexecutor.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ func New(c *Config, blockchain *core.BlockChain, fatalErrChan chan error) *Block
end = start + rng
}
// Inclusive of block reexecution [start, end]
if start > 0 {
// Do not reexecute genesis block i,e chainStart
if start > 0 && start != chainStart {
start--
}
// Divide work equally among available threads
Expand Down

0 comments on commit 04b9b37

Please sign in to comment.