From 3a8dda966c2ed8874a7f6b59a0f7cc81f669ef3f Mon Sep 17 00:00:00 2001 From: Arnis Date: Fri, 4 Feb 2022 09:42:05 +0200 Subject: [PATCH 1/2] Lil fix --- src/cryptonote_basic/cryptonote_basic_impl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cryptonote_basic/cryptonote_basic_impl.cpp b/src/cryptonote_basic/cryptonote_basic_impl.cpp index 18643707a8..eaf715d8a6 100644 --- a/src/cryptonote_basic/cryptonote_basic_impl.cpp +++ b/src/cryptonote_basic/cryptonote_basic_impl.cpp @@ -93,8 +93,11 @@ namespace cryptonote { const int emission_speed_factor = EMISSION_SPEED_FACTOR_PER_MINUTE - (target_minutes-1); const uint64_t orig_already_generated_coins = already_generated_coins; - if (orig_already_generated_coins >= UINT64_C(14992413379483553)) { - already_generated_coins -= UINT64_C(14992032107906461); //premine minus the normal block 2 emission + if (version < BLOCK_MAJOR_VERSION_7) + { + if (orig_already_generated_coins >= UINT64_C(14992413379483553)) { + already_generated_coins -= UINT64_C(14992032107906461); //premine minus the normal block 2 emission + } } uint64_t base_reward = (MONEY_SUPPLY - already_generated_coins) >> emission_speed_factor; From 2dec40cf97c3774dbc5faef7caefc6f0d87cd740 Mon Sep 17 00:00:00 2001 From: Arnis Date: Fri, 4 Feb 2022 12:29:12 +0200 Subject: [PATCH 2/2] Version update to v4.0.4 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bf303c03fa..ea836893d5 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Provide current version here instead of versin.h.in file -LETHEAN_VERSION?=4.0.3 +LETHEAN_VERSION?=4.0.4 LETHEAN_RELEASE?=linux LETHEAN_CMAKE_FLAGS?=""