From 7b3534a9fc64e4e74c069f9191287e821d0e79f2 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 29 Jan 2017 22:19:43 +0200 Subject: [PATCH] fix maxmoney to match supply --- src/amount.h | 2 +- src/komodo_utils.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amount.h b/src/amount.h index 520c55a84..6fe9fe748 100644 --- a/src/amount.h +++ b/src/amount.h @@ -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 diff --git a/src/komodo_utils.h b/src/komodo_utils.h index 9ab9178b3..9e8ad0eff 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -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;