Skip to main content

nsm_fee_contribution

Function nsm_fee_contribution 

Source
pub fn nsm_fee_contribution(
    height: Height,
    network: &Network,
    block_miner_fees: Amount<NonNegative>,
) -> Amount<NonNegative>
Expand description

NSMFeeContribution(height): the transaction fees the block at height removes from circulation, floor(block_miner_fees * 6 / 10) from NU7 activation, and zero before it. This is the fraction from ZIP 235, applied the way the NU7 deployment ZIP specifies.

The fraction applies to the total fees in the block, so rounding favors the miner. The coinbase transaction can only claim the remaining fees, and the contribution needs no transaction field.