core: prefetch next block state concurrently

This commit is contained in:
Péter Szilágyi
2019-03-25 12:41:50 +02:00
parent 86e77900c5
commit bb9631c399
6 changed files with 194 additions and 76 deletions

View File

@ -144,7 +144,7 @@ func testBlockChainImport(chain types.Blocks, blockchain *BlockChain) error {
if err != nil {
return err
}
receipts, _, usedGas, err := blockchain.Processor().Process(block, statedb, vm.Config{})
receipts, _, usedGas, err := blockchain.processor.Process(block, statedb, vm.Config{})
if err != nil {
blockchain.reportBlock(block, receipts, err)
return err