mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
rpc: add txHash
to debug_traceBlock*
results (#9016)
See https://github.com/ethereum/go-ethereum/pull/27183
This commit is contained in:
parent
a366629f8a
commit
037754a177
@ -49,6 +49,7 @@ func TestGeneratedDebugApi(t *testing.T) {
|
||||
expectedJSON := `
|
||||
[
|
||||
{
|
||||
"txHash": "0xb42edc1d46932ef34be0ba49402dc94e3d2319c066f02945f6828cd344fcfa7b",
|
||||
"result": {
|
||||
"calls": [
|
||||
{
|
||||
|
@ -111,6 +111,9 @@ func (api *PrivateDebugAPIImpl) traceBlock(ctx context.Context, blockNrOrHash rp
|
||||
|
||||
for idx, txn := range txns {
|
||||
stream.WriteObjectStart()
|
||||
stream.WriteObjectField("txHash")
|
||||
stream.WriteString(txn.Hash().Hex())
|
||||
stream.WriteMore()
|
||||
stream.WriteObjectField("result")
|
||||
select {
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user