mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +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()) {
|
if config.IsPrague(block.Number(), block.Time()) || config.IsVerkle(block.Number(), block.Time()) {
|
||||||
ProcessParentBlockHash(block.ParentHash(), evm)
|
ProcessParentBlockHash(block.ParentHash(), evm)
|
||||||
}
|
}
|
||||||
|
if hooks := cfg.Tracer; hooks != nil && hooks.OnPreTxExecutionDone != nil {
|
||||||
|
hooks.OnPreTxExecutionDone()
|
||||||
|
}
|
||||||
|
|
||||||
// Iterate over and process the individual transactions
|
// Iterate over and process the individual transactions
|
||||||
for i, tx := range block.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)
|
// Finalize the block, applying any consensus engine specific extras (e.g. block rewards)
|
||||||
p.chain.Engine().Finalize(p.chain, header, tracingStateDB, block.Body())
|
p.chain.Engine().Finalize(p.chain, header, tracingStateDB, block.Body())
|
||||||
|
|
||||||
if hooks := cfg.Tracer; hooks != nil && hooks.OnPreTxExecutionDone != nil {
|
if hooks := cfg.Tracer; hooks != nil && hooks.OnBlockFinalization != nil {
|
||||||
hooks.OnPreTxExecutionDone()
|
hooks.OnBlockFinalization()
|
||||||
}
|
}
|
||||||
|
|
||||||
return &ProcessResult{
|
return &ProcessResult{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue