From 51a4d71ab5c791db2ae9d690425c82bd66b7b5b5 Mon Sep 17 00:00:00 2001 From: Krish Date: Fri, 27 Sep 2024 10:51:47 +0800 Subject: [PATCH] fix: pbss snapshot inconsistent status fix --- core/blockchain.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/blockchain.go b/core/blockchain.go index 4e4a7355dc..e74a5da586 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -400,14 +400,13 @@ func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, genesis *Genesis //fix pbss snapshot if needed if bc.triedb.Scheme() == rawdb.PathScheme { - log.Info("pbss snapshot validation") + log.Debug("pbss snapshot validation") currentSafe := bc.CurrentSafeBlock() currentFinalize := bc.CurrentFinalBlock() 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.SetSafe(head) bc.SetFinalized(head) }