Skip to content

Commit

Permalink
Merge pull request #3969
Browse files Browse the repository at this point in the history
ffeb473 Add nHighTransactionFeeWarning as per #3969. (Bardi Harborow)
  • Loading branch information
laanwj committed Mar 31, 2014
2 parents e18bc58 + ffeb473 commit b86ed6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.cpp
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions src/wallet.h
Expand Up @@ -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;
Expand Down

0 comments on commit b86ed6f

Please sign in to comment.