aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-03-22 15:37:16 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-03-22 15:37:16 +0000
commitcc4b19c32ede3c377597ff8cb9e7e6a86a9cdfa2 (patch)
treed3fb1b5121381bf4e9206e53fcdc5bddf1644c69 /src
parentMerge pull request #743 (diff)
downloadmonero-cc4b19c32ede3c377597ff8cb9e7e6a86a9cdfa2.tar.xz
blockchain: fix partial block reward detection
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_core/blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index 00bae3741..131f56a4d 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -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;
}