Skip to content

Commit 955c423

Browse files
Merge pull request #17 from MariusVanDerWijden/marshal-withdrawals
internal/ethapi: add withdrawals to full block
2 parents 38938d0 + a47d174 commit 955c423

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/ethapi/api.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,9 @@ func RPCMarshalBlock(block *types.Block, inclTx bool, fullTx bool, config *param
12401240
}
12411241
}
12421242
fields["transactions"] = transactions
1243+
// inclTx also expands withdrawals
1244+
// TODO @MariusVanDerWijden: add a second flag similar to inclTx to enable withdrawals
1245+
fields["withdrawals"] = block.Withdrawals()
12431246
}
12441247
uncles := block.Uncles()
12451248
uncleHashes := make([]common.Hash, len(uncles))

0 commit comments

Comments
 (0)