From 23af37416c0905c7befa403b7156295932584786 Mon Sep 17 00:00:00 2001 From: AxVultis Date: Sun, 17 Jul 2022 11:28:01 +0200 Subject: [PATCH 1/2] Fix reward function --- src/CryptoNoteCore/Currency.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/CryptoNoteCore/Currency.cpp b/src/CryptoNoteCore/Currency.cpp index 27ab091c..29a2e3a9 100644 --- a/src/CryptoNoteCore/Currency.cpp +++ b/src/CryptoNoteCore/Currency.cpp @@ -177,10 +177,6 @@ namespace cn uint64_t Currency::baseRewardFunction(uint64_t alreadyGeneratedCoins, uint32_t height) const { - - uint64_t incrIntervals = static_cast(height) / REWARD_INCREASE_INTERVAL; - assert(incrIntervals < REWARD_INCREASING_FACTOR.size()); - if (height == 1) { return FOUNDATION_TRUST; @@ -194,6 +190,8 @@ namespace cn } else { + uint64_t incrIntervals = static_cast(height) / REWARD_INCREASE_INTERVAL; + assert(incrIntervals < REWARD_INCREASING_FACTOR.size()); base_reward = START_BLOCK_REWARD + REWARD_INCREASING_FACTOR[incrIntervals]; } From a02d304682c8f8b730503faf7c70f481e6cd15f2 Mon Sep 17 00:00:00 2001 From: AxVultis Date: Sun, 17 Jul 2022 11:30:21 +0200 Subject: [PATCH 2/2] Version 6.6.4 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cde2f8e4..a2d3d6c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.0) include(CheckCXXCompilerFlag) -set(VERSION "6.6.3") +set(VERSION "6.6.4") set(VERSION_BUILD_NO "Ataegina") # Packaged from main commits set(COMMIT 1db6e66)