mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
fix(callflat): set ctx in live mode
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
cbd1e10e9e
commit
1aac054d9a
1 changed files with 8 additions and 0 deletions
|
|
@ -214,6 +214,14 @@ func (t *flatCallTracer) OnTxEnd(receipt *types.Receipt, err error) {
|
|||
if t.interrupt.Load() {
|
||||
return
|
||||
}
|
||||
if t.ctx == nil {
|
||||
t.ctx = &tracers.Context{
|
||||
BlockHash: receipt.BlockHash,
|
||||
BlockNumber: receipt.BlockNumber,
|
||||
TxHash: receipt.TxHash,
|
||||
TxIndex: int(receipt.TransactionIndex),
|
||||
}
|
||||
}
|
||||
t.tracer.OnTxEnd(receipt, err)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue