Skip to main content

nsm_value_balance_change

Function nsm_value_balance_change 

Source
pub fn nsm_value_balance_change(
    height: Height,
    network: &Network,
    parent_chain_value_pools: ValueBalance<NonNegative>,
    block_miner_fees: Amount<NonNegative>,
) -> Result<Amount<NegativeAllowed>, Error>
Expand description

The change the block at height makes to the Network Sustainability Mechanism value balance, where parent_chain_value_pools are the chain value pools after its parent block.

The balance is credited at the NU7 activation block with INITIAL_NSM_VALUE_BALANCE, and debited by the additional block subsidy, which is zero before DEPLOYMENT_BLOCK_HEIGHT. Before NU7 activation the change is zero.

It is also credited with nsm_fee_contribution, the part of block_miner_fees that ZIP 235 removes from circulation.