Add nHighTransactionFeeWarning as per #3969.

This commit is contained in:
Bardi Harborow 2014-03-29 05:17:28 -04:00
parent 55027a8c85
commit ffeb47366d
2 changed files with 4 additions and 1 deletions

View File

@ -575,7 +575,7 @@ bool AppInit2(boost::thread_group& threadGroup)
{
if (!ParseMoney(mapArgs["-paytxfee"], nTransactionFee))
return InitError(strprintf(_("Invalid amount for -paytxfee=<amount>: '%s'"), mapArgs["-paytxfee"]));
if (nTransactionFee > 0.25 * COIN)
if (nTransactionFee > nHighTransactionFeeWarning)
InitWarning(_("Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction."));
}
bSpendZeroConfChange = GetArg("-spendzeroconfchange", true);

View File

@ -27,6 +27,9 @@
extern int64_t nTransactionFee;
extern bool bSpendZeroConfChange;
// -paytxfee will warn if called with a higher fee than this amount (in satoshis) per KB
static const int nHighTransactionFeeWarning = 0.01 * COIN;
class CAccountingEntry;
class CCoinControl;
class COutput;