From 08c60f59788b0e0aa3792b1b3c4782ca455a3f88 Mon Sep 17 00:00:00 2001 From: Brion L Date: Tue, 20 Sep 2022 17:13:29 +0800 Subject: [PATCH] update --- eth/backend.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eth/backend.go b/eth/backend.go index b08dcea61b..22be2ef961 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -224,7 +224,9 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) { eth.blockchain.SetHead(compat.RewindTo) rawdb.WriteChainConfig(chainDb, genesisHash, chainConfig) } - eth.bloomIndexer.Start(eth.blockchain) + if !config.AncientPrune { + eth.bloomIndexer.Start(eth.blockchain) + } if config.TxPool.Journal != "" { config.TxPool.Journal = stack.ResolvePath(config.TxPool.Journal)