diff options
author | Alex Morcos <morcos@chaincode.com> | 2016-01-05 13:11:34 -0500 |
---|---|---|
committer | Alex Morcos <morcos@chaincode.com> | 2016-01-05 13:13:23 -0500 |
commit | e420a1b15e3be8c9d862173d9d554563405b34a7 (patch) | |
tree | 13af0732d92b76ab8279d9632b797f3ce3ec7aa9 /src/wallet/wallet.h | |
parent | 995b9f385b935e4e9b9fa46e82f642204cc85cba (diff) |
Add sane fallback for fee estimation
Add new commandline option "-fallbackfee" to use when fee estimation does not have sufficient data.
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r-- | src/wallet/wallet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 53a2b96690..ce57f4dae1 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -41,6 +41,8 @@ static const unsigned int DEFAULT_KEYPOOL_SIZE = 100; static const CAmount DEFAULT_TRANSACTION_FEE = 0; //! -paytxfee will warn if called with a higher fee than this amount (in satoshis) per KB static const CAmount nHighTransactionFeeWarning = 0.01 * COIN; +//! -fallbackfee default +static const CAmount DEFAULT_FALLBACK_FEE = 20000; //! -mintxfee default static const CAmount DEFAULT_TRANSACTION_MINFEE = 1000; //! -maxtxfee default @@ -666,6 +668,7 @@ public: bool AddAccountingEntry(const CAccountingEntry&, CWalletDB & pwalletdb); static CFeeRate minTxFee; + static CFeeRate fallbackFee; /** * Estimate the minimum fee considering user set parameters * and the required fee |