mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
t8ntool/file_tracer: proxy OnFaultV2 in writer wrapper
This commit is contained in:
parent
99923e9f54
commit
182e08af32
1 changed files with 9 additions and 0 deletions
|
|
@ -138,6 +138,15 @@ func (l *fileWritingTracer) hooks() *tracing.Hooks {
|
|||
l.inner.OnFault(pc, op, gas, cost, scope, depth, err)
|
||||
}
|
||||
},
|
||||
OnFaultV2: func(pc uint64, op byte, gas, cost uint64, scope tracing.OpContext, rData []byte, depth int, err error) {
|
||||
if l.inner != nil {
|
||||
if l.inner.OnFaultV2 != nil {
|
||||
l.inner.OnFaultV2(pc, op, gas, cost, scope, rData, depth, err)
|
||||
} else if l.inner.OnFault != nil {
|
||||
l.inner.OnFault(pc, op, gas, cost, scope, depth, err)
|
||||
}
|
||||
}
|
||||
},
|
||||
OnSystemCallStart: func() {
|
||||
if l.inner != nil && l.inner.OnSystemCallStart != nil {
|
||||
l.inner.OnSystemCallStart()
|
||||
|
|
|
|||
Loading…
Reference in a new issue