Browse Source

Accounted for 50 coin transaction in genesis block as genesispremine

pull/4/head
miketout 6 years ago
parent
commit
a1af306f81
  1. 1
      src/komodo_globals.h
  2. 2
      src/komodo_utils.h

1
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

2
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++ )
{

Loading…
Cancel
Save