Skip to content

Commit

Permalink
revert wrong HF version for halved block reward. fixes #267
Browse files Browse the repository at this point in the history
  • Loading branch information
mbg033 committed Apr 11, 2019
1 parent 70e0c7d commit 85d4cc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cryptonote_basic/cryptonote_basic_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ namespace cryptonote {

if (current_block_size <= median_size) {
reward = base_reward;
if (version >= 12) { // XXX Be careful when merging back to master, in master "halving" version is 10
// halving reward since version 12
if (version >= 10) {
// halving reward since version 10
reward /= 2;
}
return true;
Expand Down Expand Up @@ -144,8 +144,8 @@ namespace cryptonote {
assert(reward_lo < base_reward);

reward = reward_lo;
if (version >= 12) { // XXX Be careful when merging back to master, in master "halving" version is 10
// halving reward since version 12
if (version >= 10) {
// halving reward since version 10
reward /= 2;
}
return true;
Expand Down

0 comments on commit 85d4cc4

Please sign in to comment.