Skip to content

Commit

Permalink
Merge pull request #49 from NicolasFlamel1/master
Browse files Browse the repository at this point in the history
Fixes calculating the total number of coinbase rewards at the last block reward height
  • Loading branch information
bayk authored Jun 17, 2024
2 parents bd7373b + 30a5cb6 commit f0534fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ pub fn calc_mwc_block_overage(height: u64, genesis_had_reward: bool) -> u64 {
overage += get_epoch_reward(11) * (get_epoch_duration(11));

// we add the last block reward to get us to 20 million
if height > get_epoch_block_offset(11) + get_epoch_duration(11) {
if height >= get_epoch_block_offset(11) + get_epoch_duration(11) {
overage += get_epoch_reward(12);
}

Expand Down

0 comments on commit f0534fa

Please sign in to comment.