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 jagdeep sidhu committed Jul 10, 2021
1 parent 964d3c9 commit 948f8e4
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 948f8e4

Please sign in to comment.