[tracer] fix txhash,blockhash of trace result

pull/4064/head
peekpi 3 years ago
parent e0c7d011d1
commit a9072795fe
  1. 1
      rpc/tracer.go

@ -169,6 +169,7 @@ func (s *PublicTracerService) TraceTransaction(ctx context.Context, hash common.
return nil, err return nil, err
} }
// Trace the transaction and return // Trace the transaction and return
statedb.Prepare(tx.ConvertToEth().Hash(), block.Hash(), int(index))
return s.hmy.TraceTx(ctx, msg, vmctx, statedb, config) return s.hmy.TraceTx(ctx, msg, vmctx, statedb, config)
} }

Loading…
Cancel
Save