mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
core: fix initialization of parallelProcessor (#33723)
while trying to re-run 7843 tests again i saw geth panic (no clean hive errors btw) and this fixes it. i think `parallelProcessor` field in `BlockChain` was never initialized, so if u get a block with bal u run `processBlockWithAccessList()` which then calls `bc.parallelProcessor.Process(...)` which eventually calls `p.chainConfig()` which then tries `p.chain.Config()` but `p.chain` is still `nil`, ripbozo. i applied this fix and now geth again passes all 7843 tests. you also pass 179/184 tests of eip-8024, but those 5 failing could be on our side and have nothing to do with this pr
This commit is contained in:
parent
80af906c67
commit
bca5642f56
1 changed files with 1 additions and 0 deletions
|
|
@ -437,6 +437,7 @@ func NewBlockChain(db ethdb.Database, genesis *Genesis, engine consensus.Engine,
|
|||
bc.validator = NewBlockValidator(chainConfig, bc)
|
||||
bc.prefetcher = newStatePrefetcher(chainConfig, bc.hc)
|
||||
bc.processor = NewStateProcessor(bc.hc)
|
||||
bc.parallelProcessor = NewParallelStateProcessor(bc.hc, &cfg.VmConfig)
|
||||
|
||||
genesisHeader := bc.GetHeaderByNumber(0)
|
||||
if genesisHeader == nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue