mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
core/blockchain: remove unnecessary fmt.Sprintf in log.Error calls
This commit is contained in:
parent
c8be0f9a74
commit
efa31dd509
1 changed files with 2 additions and 2 deletions
|
|
@ -652,8 +652,8 @@ func (bc *BlockChain) initializeHistoryPruning(latest uint64) error {
|
||||||
// postmerge directly on an existing DB. We could just trigger the pruning
|
// postmerge directly on an existing DB. We could just trigger the pruning
|
||||||
// here, but it'd be a bit dangerous since they may not have intended this
|
// 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.
|
// 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("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")
|
return fmt.Errorf("history pruning requested via configuration")
|
||||||
}
|
}
|
||||||
predefinedPoint := history.PrunePoints[bc.genesisBlock.Hash()]
|
predefinedPoint := history.PrunePoints[bc.genesisBlock.Hash()]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue