Skip to content

Commit

Permalink
Merge pull request #17 from MariusVanDerWijden/marshal-withdrawals
Browse files Browse the repository at this point in the history
internal/ethapi: add withdrawals to full block
  • Loading branch information
MariusVanDerWijden authored Dec 7, 2022
2 parents 38938d0 + a47d174 commit 955c423
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,9 @@ func RPCMarshalBlock(block *types.Block, inclTx bool, fullTx bool, config *param
}
}
fields["transactions"] = transactions
// inclTx also expands withdrawals
// TODO @MariusVanDerWijden: add a second flag similar to inclTx to enable withdrawals
fields["withdrawals"] = block.Withdrawals()
}
uncles := block.Uncles()
uncleHashes := make([]common.Hash, len(uncles))
Expand Down

0 comments on commit 955c423

Please sign in to comment.