Expand description
Calculations for Block Subsidy and Funding Streams
This module contains the consensus parameters which are required for verification.
Some consensus parameters change based on network upgrades. Each network upgrade happens at a particular block height. Some parameters have a value (or function) before the upgrade height, at the upgrade height, and after the upgrade height. (For example, the value of the reserved field in the block header during the Heartwood upgrade.)
Typically, consensus parameters are accessed via a function that takes a
Network and block::Height.
Modules§
- constants 🔒
- Constants for block subsidies.
Structs§
- Funding
Stream Recipient - A funding stream recipient as specified in protocol specification §7.10.1
- Funding
Streams - Funding stream recipients and height ranges.
Enums§
- Funding
Stream Receiver - The funding stream receiver categories.
- Subsidy
Error - Block subsidy errors.
Traits§
- Parameter
Subsidy - Functionality specific to block subsidy-related consensus rules
Functions§
- block_
subsidy BlockSubsidy(height)as described in protocol specification §7.8- founders_
reward FoundersReward(height)as described in §7.8.- founders_
reward_ address - Returns the founders reward address for a given height and network as described in §7.9.
- funding_
stream_ address_ period - Returns the address change period as described in protocol specification §7.10
- funding_
stream_ values - Returns the
fs.Value(height)for each stream receiver as described in protocol specification §7.8 - halving
- The halving index for a block height and network.
- halving_
divisor - The divisor used for halvings.
- height_
for_ halving - The first block height of the halving at the provided halving index for a network.
- miner_
subsidy MinerSubsidy(height)as described in protocol specification §7.8