This commit is contained in:
Brion L 2022-09-20 17:13:29 +08:00
parent 55370ce833
commit 08c60f5978

View file

@ -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)