From 85d4cc4f8bc08c3412785ae31d5a0081fdb1c42e Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Thu, 11 Apr 2019 19:54:03 +0300 Subject: [PATCH] revert wrong HF version for halved block reward. fixes #267 --- src/cryptonote_basic/cryptonote_basic_impl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cryptonote_basic/cryptonote_basic_impl.cpp b/src/cryptonote_basic/cryptonote_basic_impl.cpp index 81af83d2f..7aeaedf8d 100644 --- a/src/cryptonote_basic/cryptonote_basic_impl.cpp +++ b/src/cryptonote_basic/cryptonote_basic_impl.cpp @@ -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; @@ -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;