mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
eth/tracers/native/call_flat.go: delegate reason to the wrapped call tracer
This commit is contained in:
parent
36ec4940e8
commit
07f9406b45
1 changed files with 2 additions and 3 deletions
|
|
@ -115,7 +115,6 @@ type flatCallTracer struct {
|
|||
tracer *callTracer
|
||||
config flatCallTracerConfig
|
||||
ctx *tracers.Context // Holds tracer context data
|
||||
reason error // Textual reason for the interruption
|
||||
interrupt atomic.Bool // Atomic flag to signal execution interruption
|
||||
activePrecompiles []common.Address // Updated on tx start based on given rules
|
||||
}
|
||||
|
|
@ -233,12 +232,12 @@ func (t *flatCallTracer) GetResult() (json.RawMessage, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return res, t.reason
|
||||
return res, t.tracer.reason
|
||||
}
|
||||
|
||||
// Stop terminates execution of the tracer at the first opportune moment.
|
||||
func (t *flatCallTracer) Stop(err error) {
|
||||
t.reason = err
|
||||
t.tracer.Stop(err)
|
||||
t.interrupt.Store(true)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue