From 0a3a81e076bdce533869bd79bad2b4723e10ea5f Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 30 Mar 2017 05:07:23 +0300 Subject: [PATCH] Test --- src/amount.h | 4 +++- src/main.cpp | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) 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) {