forked from cerc-io/plugeth
Minor change to support test plugin
This commit is contained in:
parent
ba7a166608
commit
63e1ad633c
@ -70,17 +70,17 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
|
|||||||
if p.config.DAOForkSupport && p.config.DAOForkBlock != nil && p.config.DAOForkBlock.Cmp(block.Number()) == 0 {
|
if p.config.DAOForkSupport && p.config.DAOForkBlock != nil && p.config.DAOForkBlock.Cmp(block.Number()) == 0 {
|
||||||
misc.ApplyDAOHardFork(statedb)
|
misc.ApplyDAOHardFork(statedb)
|
||||||
}
|
}
|
||||||
|
blockTracer, ok := pluginGetBlockTracer(header.Hash(), statedb)
|
||||||
|
if ok {
|
||||||
|
cfg.Tracer = blockTracer
|
||||||
|
// cfg.Debug = true
|
||||||
|
}
|
||||||
var (
|
var (
|
||||||
context = NewEVMBlockContext(header, p.bc, nil)
|
context = NewEVMBlockContext(header, p.bc, nil)
|
||||||
vmenv = vm.NewEVM(context, vm.TxContext{}, statedb, p.config, cfg)
|
vmenv = vm.NewEVM(context, vm.TxContext{}, statedb, p.config, cfg)
|
||||||
signer = types.MakeSigner(p.config, header.Number, header.Time)
|
signer = types.MakeSigner(p.config, header.Number, header.Time)
|
||||||
)
|
)
|
||||||
//begin PluGeth code injection
|
//begin PluGeth code injection
|
||||||
blockTracer, ok := pluginGetBlockTracer(header.Hash(), statedb)
|
|
||||||
if ok {
|
|
||||||
cfg.Tracer = blockTracer
|
|
||||||
// cfg.Debug = true
|
|
||||||
}
|
|
||||||
// end pluGeth code injection
|
// end pluGeth code injection
|
||||||
// begin PluGeth code injection
|
// begin PluGeth code injection
|
||||||
pluginPreProcessBlock(block)
|
pluginPreProcessBlock(block)
|
||||||
|
Loading…
Reference in New Issue
Block a user