Skip to content

Commit

Permalink
core: fix bad parent hash when jumping to genesis in setHead (ethereu…
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 authored and atif-konasl committed Oct 15, 2021
1 parent 53ce13d commit 3c6c88d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/headerchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ func (hc *HeaderChain) SetHead(head uint64, updateFn UpdateHeadBlocksCallback, d
if parent == nil {
parent = hc.genesisHeader
}
parentHash = hdr.ParentHash
parentHash = parent.Hash()

// Notably, since geth has the possibility for setting the head to a low
// height which is even lower than ancient head.
Expand Down

0 comments on commit 3c6c88d

Please sign in to comment.