diff --git a/src/amount.h b/src/amount.h index 7dc62edac..d49ab0723 100644 --- a/src/amount.h +++ b/src/amount.h @@ -25,7 +25,9 @@ static const CAmount CENT = 1000000; * critical; in unusual circumstances like a(nother) overflow bug that allowed * for the creation of coins out of thin air modification could lead to a fork. * */ -static const CAmount MAX_MONEY = 21000000 * COIN; +//static const CAmount MAX_MONEY = 21000000 * COIN; +extern int64_t MAX_MONEY; + inline bool MoneyRange(const CAmount& nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); } /** Type-safe wrapper class to for fee rates diff --git a/src/main.cpp b/src/main.cpp index 4ae36759c..0ba92ebb0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1902,7 +1902,6 @@ bool ContextualCheckInputs(const CTransaction& tx, CValidationState &state, cons return true; } -bool ContextualCheckInputs(const CTransaction& tx, CValidationState &state, const CCoinsViewCache &inputs, bool fScriptChecks, unsigned int flags, bool cacheStore, const Consensus::Params& consensusParams, std::vector *pvChecks) /*bool ContextualCheckInputs(const CTransaction& tx, CValidationState &state, const CCoinsViewCache &inputs, bool fScriptChecks, unsigned int flags, bool cacheStore, const Consensus::Params& consensusParams, std::vector *pvChecks) {