From a1af306f8119e748a0f903fb8eeee92024ad4f65 Mon Sep 17 00:00:00 2001 From: miketout Date: Mon, 23 Apr 2018 22:49:56 -0700 Subject: [PATCH] Accounted for 50 coin transaction in genesis block as genesispremine --- src/komodo_globals.h | 1 + src/komodo_utils.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/komodo_globals.h b/src/komodo_globals.h index 0accfd2b6..2ecd9d690 100644 --- a/src/komodo_globals.h +++ b/src/komodo_globals.h @@ -56,6 +56,7 @@ uint32_t ASSETCHAIN_INIT; uint32_t ASSETCHAINS_MAGIC = 2387029918; uint64_t ASSETCHAINS_SUPPLY = 10; uint64_t ASSETCHAINS_COMMISSION; +int64_t ASSETCHAINS_GENESISPREMINE = 5000000000; // consensus variables for coinbase timelock control and timelock transaction support // time locks are specified enough to enable their use initially to lock specific coinbase transactions for emission control diff --git a/src/komodo_utils.h b/src/komodo_utils.h index b8b8e14ab..146202fa1 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -1552,7 +1552,7 @@ int64_t komodo_max_money() else { // figure out max_money by adding up supply and future block rewards, if no ac_END, max_money uses arbitrary 10,000,000 block end - max_money = (ASSETCHAINS_SUPPLY+1) * SATOSHIDEN + (ASSETCHAINS_MAGIC & 0xffffff); + max_money = (ASSETCHAINS_SUPPLY+1) * SATOSHIDEN + (ASSETCHAINS_MAGIC & 0xffffff) + ASSETCHAINS_GENESISPREMINE; for ( int j = 0; j <= ASSETCHAINS_LASTERA && (j == 0 || ASSETCHAINS_ENDSUBSIDY[j - 1] != 0); j++ ) {