mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-15 20:46:40 +00:00
core: write head hash to db after snap sync is complete (#34912)
This commit is contained in:
parent
c16684c1ee
commit
d446676fc4
1 changed files with 1 additions and 0 deletions
|
|
@ -1186,6 +1186,7 @@ func (bc *BlockChain) SnapSyncComplete(hash common.Hash) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If all checks out, manually set the head block.
|
// If all checks out, manually set the head block.
|
||||||
|
rawdb.WriteHeadBlockHash(bc.db, hash)
|
||||||
bc.currentBlock.Store(block.Header())
|
bc.currentBlock.Store(block.Header())
|
||||||
headBlockGauge.Update(int64(block.NumberU64()))
|
headBlockGauge.Update(int64(block.NumberU64()))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue