pub fn coinbase_reward(
    block_height: u32,
    starting_supply: u64,
    anchor_height: u32,
    block_time: u16,
    combined_proof_target: u128,
    cumulative_proof_target: u64,
    coinbase_target: u64
) -> Result<u64>
Expand description

Calculates the coinbase reward for a given block. R_coinbase = max(0, H_Y10 - H) * R_anchor * min(P, C_R) / C R_anchor = Anchor reward. H_Y10 = Anchor block height at year 10. H = Current block height. P = Combined proof target. C_R = Remaining coinbase target. C = Coinbase target.