mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
tests: also invoke OnTxEnd
This commit is contained in:
parent
7ad3840c6b
commit
5585a93922
1 changed files with 5 additions and 0 deletions
|
|
@ -297,6 +297,11 @@ func (t *StateTest) RunNoVerify(subtest StateSubtest, vmconfig vm.Config, snapsh
|
||||||
|
|
||||||
if tracer := vmconfig.Tracer; tracer != nil && tracer.OnTxStart != nil {
|
if tracer := vmconfig.Tracer; tracer != nil && tracer.OnTxStart != nil {
|
||||||
tracer.OnTxStart(evm.GetVMContext(), nil, msg.From)
|
tracer.OnTxStart(evm.GetVMContext(), nil, msg.From)
|
||||||
|
if evm.Config.Tracer.OnTxEnd != nil {
|
||||||
|
defer func() {
|
||||||
|
evm.Config.Tracer.OnTxEnd(nil, err)
|
||||||
|
}()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Execute the message.
|
// Execute the message.
|
||||||
snapshot := st.StateDB.Snapshot()
|
snapshot := st.StateDB.Snapshot()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue