fix maxmoney to match supply

This commit is contained in:
jl777
2017-01-29 22:19:43 +02:00
parent b6b5a76d18
commit 7b3534a9fc
2 changed files with 2 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ static const CAmount COIN = 100000000;
static const CAmount CENT = 1000000;
/** No amount larger than this (in satoshi) is valid */
static const CAmount MAX_MONEY = 200000000 * COIN;
static CAmount MAX_MONEY = 200000000 * COIN;
inline bool MoneyRange(const CAmount& nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }
/** Type-safe wrapper class to for fee rates

View File

@@ -1465,6 +1465,7 @@ void komodo_args()
if ( name.c_str()[0] != 0 )
{
ASSETCHAINS_SUPPLY = GetArg("-ac_supply",10);
MAX_MONEY = ASSETCHAINS_SUPPLY * COIN;
addn = GetArg("-seednode","");
if ( strlen(addn.c_str()) > 0 )
ASSETCHAINS_SEED = 1;