Skip to content

Commit

Permalink
Fixes calculating total number of coinbase rewards at the last block …
Browse files Browse the repository at this point in the history
…reward
  • Loading branch information
NicolasFlamel1 committed Jul 15, 2022
1 parent a7cf36a commit 30a5cb6
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 30a5cb6

Please sign in to comment.