Skip to content

Commit

Permalink
core: skip the check the statefulness of head block in repair (ethere…
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 authored and jorgemmsilva committed Jun 17, 2024
1 parent c31db5a commit bd0b4f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ func (bc *BlockChain) setHeadBeyondRoot(head uint64, time uint64, root common.Ha
// touching the header chain altogether, unless the freezer is broken
if repair {
if target, force := updateFn(bc.db, bc.CurrentBlock()); force {
bc.hc.SetHead(target.Number.Uint64(), updateFn, delFn)
bc.hc.SetHead(target.Number.Uint64(), nil, delFn)
}
} else {
// Rewind the chain to the requested head and keep going backwards until a
Expand Down

0 comments on commit bd0b4f9

Please sign in to comment.