Skip to content

Commit 78c102d

Browse files
authored
core: skip the check the statefulness of head block in repair (#29245)
1 parent 22ac46c commit 78c102d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/blockchain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ func (bc *BlockChain) setHeadBeyondRoot(head uint64, time uint64, root common.Ha
891891
// touching the header chain altogether, unless the freezer is broken
892892
if repair {
893893
if target, force := updateFn(bc.db, bc.CurrentBlock()); force {
894-
bc.hc.SetHead(target.Number.Uint64(), updateFn, delFn)
894+
bc.hc.SetHead(target.Number.Uint64(), nil, delFn)
895895
}
896896
} else {
897897
// Rewind the chain to the requested head and keep going backwards until a

0 commit comments

Comments
 (0)