nHighTransactionFeeWarning (bitcoin/bitcoin@ffeb47366d)
This commit is contained in:
parent
e5d71803d7
commit
26d3a89b1c
|
@ -585,7 +585,7 @@ bool AppInit2(boost::thread_group& threadGroup)
|
||||||
{
|
{
|
||||||
if (!ParseMoney(mapArgs["-paytxfee"], nTransactionFee))
|
if (!ParseMoney(mapArgs["-paytxfee"], nTransactionFee))
|
||||||
return InitError(strprintf(_("Invalid amount for -paytxfee=<amount>: '%s'"), mapArgs["-paytxfee"]));
|
return InitError(strprintf(_("Invalid amount for -paytxfee=<amount>: '%s'"), mapArgs["-paytxfee"]));
|
||||||
if (nTransactionFee > 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."));
|
InitWarning(_("Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction."));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,9 @@
|
||||||
extern int64_t nTransactionFee;
|
extern int64_t nTransactionFee;
|
||||||
extern bool bSpendZeroConfChange;
|
extern bool bSpendZeroConfChange;
|
||||||
|
|
||||||
|
// -paytxfee will warn if called with a higher fee than this amount (in satoshis) per KB
|
||||||
|
static const int nHighTransactionFeeWarning = 25 * COIN;
|
||||||
|
|
||||||
class CAccountingEntry;
|
class CAccountingEntry;
|
||||||
class CCoinControl;
|
class CCoinControl;
|
||||||
class COutput;
|
class COutput;
|
||||||
|
|
Loading…
Reference in a new issue