Skip to content

Commit

Permalink
Merge pull request #748
Browse files Browse the repository at this point in the history
cc4b19c blockchain: fix partial block reward detection (moneromooo-monero)
  • Loading branch information
fluffypony committed Mar 25, 2016
2 parents eb1b87d + cc4b19c commit cb6be98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryptonote_core/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -984,9 +984,9 @@ bool Blockchain::validate_miner_transaction(const block& b, size_t cumulative_bl
// to show the amount of coins that were actually generated, the remainder will be pushed back for later
// emission. This modifies the emission curve very slightly.
CHECK_AND_ASSERT_MES(money_in_use - fee <= base_reward, false, "base reward calculation bug");
base_reward = money_in_use - fee;
if(base_reward + fee != money_in_use)
partial_block_reward = true;
base_reward = money_in_use - fee;
}
return true;
}
Expand Down

0 comments on commit cb6be98

Please sign in to comment.