pub const fn ommer_reward(
base_block_reward: u128,
block_number: BlockNumber,
ommer_block_number: BlockNumber,
) -> u128
Expand description
Calculate the reward for an ommer.
§Application
Rewards are accumulative, so they should be added to the beneficiary addresses in addition to any other rewards from the same block.
From the yellow paper (page 15):
If there are collisions of the beneficiary addresses between ommers and the block (i.e. two ommers with the same beneficiary address or an ommer with the same beneficiary address as the present block), additions are applied cumulatively.
§References
- Implementation: OpenEthereum
- Definition: Yellow Paper (page 15, 11.3)