This commit is contained in:
Brion L 2022-09-20 17:13:29 +08:00
parent b3acf83e33
commit 9b5443e9bd
2 changed files with 4 additions and 2 deletions

View file

@ -634,7 +634,7 @@ func (s *MatcherSession) Multiplex(batch int, wait time.Duration, mux chan chan
s.errLock.Lock()
s.err = result.Error
s.errLock.Unlock()
s.Close()
//s.Close()
}
s.deliverSections(result.Bit, result.Sections, result.Bitsets)
}

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)