From 9a43073a1f473e46c295198cbfb4067f8587edc4 Mon Sep 17 00:00:00 2001 From: Weixie Cui Date: Sat, 9 May 2026 12:57:04 +0800 Subject: [PATCH] core: write head hash to db after snap sync is complete --- core/blockchain.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/blockchain.go b/core/blockchain.go index 2b49111121..7b5a910b7a 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1186,6 +1186,7 @@ func (bc *BlockChain) SnapSyncComplete(hash common.Hash) error { } // If all checks out, manually set the head block. + rawdb.WriteHeadBlockHash(bc.db, hash) bc.currentBlock.Store(block.Header()) headBlockGauge.Update(int64(block.NumberU64()))