snarkvm_ledger_block

Function block_reward

Source
pub fn block_reward<N: Network>(
    block_height: u32,
    total_supply: u64,
    block_time: u16,
    time_since_last_block: i64,
    coinbase_reward: u64,
    transaction_fees: u64,
) -> u64
Expand description

Calculate the block reward based on the network’s consensus version, determined by the given block height.