Skip to content

Commit

Permalink
Merge pull request ethereum#15 from MariusVanDerWijden/marshal-withdr…
Browse files Browse the repository at this point in the history
…awals

internal/ethapi: add withdrawals to full block
  • Loading branch information
lightclient authored Nov 22, 2022
2 parents 102fb32 + ceecb2c commit 68d59f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,8 @@ func RPCMarshalBlock(block *types.Block, inclTx bool, fullTx bool, config *param
}
}
fields["transactions"] = transactions
// inclTx also expands withdrawals
fields["withdrawals"] = block.Withdrawals()
}
uncles := block.Uncles()
uncleHashes := make([]common.Hash, len(uncles))
Expand Down

0 comments on commit 68d59f3

Please sign in to comment.