mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
native/flat: always set context from receipt
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
8ba2c3db0e
commit
8750e2d975
1 changed files with 6 additions and 7 deletions
|
|
@ -220,13 +220,12 @@ func (t *flatCallTracer) OnTxEnd(receipt *types.Receipt, err error) {
|
||||||
if t.interrupt.Load() {
|
if t.interrupt.Load() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if t.ctx == nil {
|
// Always set context with receipt data.
|
||||||
t.ctx = &tracers.Context{
|
t.ctx = &tracers.Context{
|
||||||
BlockHash: receipt.BlockHash,
|
BlockHash: receipt.BlockHash,
|
||||||
BlockNumber: receipt.BlockNumber,
|
BlockNumber: receipt.BlockNumber,
|
||||||
TxHash: receipt.TxHash,
|
TxHash: receipt.TxHash,
|
||||||
TxIndex: int(receipt.TransactionIndex),
|
TxIndex: int(receipt.TransactionIndex),
|
||||||
}
|
|
||||||
}
|
}
|
||||||
t.tracer.OnTxEnd(receipt, err)
|
t.tracer.OnTxEnd(receipt, err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue