From 629bf9c65e1be45329cfeecc6c95237c9c40029e Mon Sep 17 00:00:00 2001 From: Krish Date: Wed, 30 Oct 2024 15:53:58 +0800 Subject: [PATCH] chore: refine as comment --- core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index 518036c8e3..8d0e917616 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -408,7 +408,7 @@ func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, genesis *Genesis if currentSafe != nil && currentFinalize != nil { if currentSafe.Number.Uint64() > head.Number.Uint64() || currentFinalize.Number.Uint64() > head.Number.Uint64() { log.Info("current unsafe is behind safe, reset") - bc.hc.SetHead(head.Number.Uint64(), nil, createDelFn(bc)) + bc.HeaderChainForceSetHead(head.Number.Uint64()) // Update the safe and finalized block conditionally if currentSafe.Number.Uint64() > head.Number.Uint64() {