Left comments on all PluGeth code injections

This commit is contained in:
philip-morlier
2022-04-04 15:40:56 -05:00
committed by Austin Roberts
parent 4211c5c401
commit fd0aaa1d6b
8 changed files with 22 additions and 3 deletions
+2
View File
@@ -71,6 +71,7 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
misc.ApplyDAOHardFork(statedb)
}
blockContext := NewEVMBlockContext(header, p.bc, nil)
//begin PluGeth code injection
blockTracer, ok := pluginGetBlockTracer(header.Hash(), statedb)
if ok {
cfg.Tracer = blockTracer
@@ -104,6 +105,7 @@ 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.engine.Finalize(p.bc, header, statedb, block.Transactions(), block.Uncles())
pluginPostProcessBlock(block)
//begin PluGeth code injection
blockTracer.PostProcessBlock(block)
return receipts, allLogs, *usedGas, nil
}