mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
fix last commit
This commit is contained in:
parent
cba057f8cb
commit
56388262c5
1 changed files with 5 additions and 2 deletions
|
|
@ -92,6 +92,9 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
|
|||
if config.IsPrague(block.Number(), block.Time()) || config.IsVerkle(block.Number(), block.Time()) {
|
||||
ProcessParentBlockHash(block.ParentHash(), evm)
|
||||
}
|
||||
if hooks := cfg.Tracer; hooks != nil && hooks.OnPreTxExecutionDone != nil {
|
||||
hooks.OnPreTxExecutionDone()
|
||||
}
|
||||
|
||||
// Iterate over and process the individual transactions
|
||||
for i, tx := range block.Transactions() {
|
||||
|
|
@ -129,8 +132,8 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
|
|||
// Finalize the block, applying any consensus engine specific extras (e.g. block rewards)
|
||||
p.chain.Engine().Finalize(p.chain, header, tracingStateDB, block.Body())
|
||||
|
||||
if hooks := cfg.Tracer; hooks != nil && hooks.OnPreTxExecutionDone != nil {
|
||||
hooks.OnPreTxExecutionDone()
|
||||
if hooks := cfg.Tracer; hooks != nil && hooks.OnBlockFinalization != nil {
|
||||
hooks.OnBlockFinalization()
|
||||
}
|
||||
|
||||
return &ProcessResult{
|
||||
|
|
|
|||
Loading…
Reference in a new issue