fix bloombits deadlock

This commit is contained in:
Brion L 2022-09-20 16:25:52 +08:00
parent 9b5443e9bd
commit 55370ce833

View file

@ -224,9 +224,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
eth.blockchain.SetHead(compat.RewindTo)
rawdb.WriteChainConfig(chainDb, genesisHash, chainConfig)
}
if !config.AncientPrune {
eth.bloomIndexer.Start(eth.blockchain)
}
eth.bloomIndexer.Start(eth.blockchain)
if config.TxPool.Journal != "" {
config.TxPool.Journal = stack.ResolvePath(config.TxPool.Journal)