forked from cerc-io/plugeth
core: fix bad parent hash when jumping to genesis in setHead (#23162)
This commit is contained in:
parent
99169016d2
commit
bd566977e8
@ -574,7 +574,7 @@ func (hc *HeaderChain) SetHead(head uint64, updateFn UpdateHeadBlocksCallback, d
|
|||||||
if parent == nil {
|
if parent == nil {
|
||||||
parent = hc.genesisHeader
|
parent = hc.genesisHeader
|
||||||
}
|
}
|
||||||
parentHash = hdr.ParentHash
|
parentHash = parent.Hash()
|
||||||
|
|
||||||
// Notably, since geth has the possibility for setting the head to a low
|
// Notably, since geth has the possibility for setting the head to a low
|
||||||
// height which is even lower than ancient head.
|
// height which is even lower than ancient head.
|
||||||
|
Loading…
Reference in New Issue
Block a user