Skip to content

Commit

Permalink
Restore code from master
Browse files Browse the repository at this point in the history
  • Loading branch information
LenyKholodov committed May 13, 2019
1 parent 2e2d3cb commit e14e92a
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 @@ -1222,7 +1222,7 @@ bool Blockchain::validate_miner_transaction(const block& b, size_t cumulative_bl
// from hard fork 2, since a miner can claim less than the full block reward, we update the base_reward
// 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 / 2) <= base_reward * 2, false, "base reward calculation bug");
CHECK_AND_ASSERT_MES(money_in_use - fee <= base_reward, false, "base reward calculation bug");
if(base_reward + fee != money_in_use)
partial_block_reward = true;
base_reward = money_in_use - fee;
Expand Down

0 comments on commit e14e92a

Please sign in to comment.