You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.Error("failed to retrieve parent by hash to process block state",
2462
2461
"parent number", block.NumberU64()-1,
2463
2462
"parent hash", block.ParentHash().String())
2464
2463
parent=bc.GetBlockByNumber(block.NumberU64() -1)
2465
2464
ifparent==nil {
2466
-
returnnil, nil, nil, 0, fmt.Errorf("failed to retrieve canonical parent by number to process block state (number %d, hash %s)", block.NumberU64()-1, block.ParentHash().String())
2465
+
returnnil, nil, fmt.Errorf("failed to retrieve canonical parent by number to process block state (number %d, hash %s)", block.NumberU64()-1, block.ParentHash().String())
2467
2466
}
2468
2467
}
2469
2468
statedb, err:=bc.StateAt(parent.Root())
2470
2469
iferr!=nil {
2471
-
returnnil, nil, nil, 0, fmt.Errorf("failed to retrieve state at %d, %s: %w", parent.NumberU64(), parent.Root(), err)
2470
+
returnnil, parent.Header(), fmt.Errorf("failed to retrieve state at %d, %s: %w", parent.NumberU64(), parent.Root(), err)
2471
+
}
2472
+
returnstatedb, parent.Header(), nil
2473
+
}
2474
+
2475
+
// ProcessState processes the state changes according to the Ethereum rules by running
2476
+
// the transaction messages using the statedb (if given) and applying any rewards to both
2477
+
// the processor (coinbase) and any included uncles. It doesn't persist any data.
0 commit comments