From 69d553ba002db4a979c991ae599bc8103678770c Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Thu, 31 Jul 2025 13:25:52 +0800 Subject: [PATCH] core: unnecessary use of fmt.Sprintf --- core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index 2794513025..dfc4b9771d 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -651,7 +651,7 @@ func (bc *BlockChain) initializeHistoryPruning(latest uint64) error { // here, but it'd be a bit dangerous since they may not have intended this // action to happen. So just tell them how to do it. log.Error(fmt.Sprintf("Chain history mode is configured as %q, but database is not pruned.", bc.cacheConfig.ChainHistoryMode.String())) - log.Error(fmt.Sprintf("Run 'geth prune-history' to prune pre-merge history.")) + log.Error("Run 'geth prune-history' to prune pre-merge history.") return fmt.Errorf("history pruning requested via configuration") } predefinedPoint := history.PrunePoints[bc.genesisBlock.Hash()]