aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/chain.h
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2017-07-28 21:40:29 -0400
committerRussell Yanofsky <russ@yanofsky.org>2019-02-22 15:43:02 -0400
commitcc02c796d3517931acc861b0f9bc50e36e1c95f9 (patch)
treeadc01a513b50ceed34412f362644999de61ff561 /src/interfaces/chain.h
parent1fb0a4a04e9cda19ed5ad04694a39c83c91b6072 (diff)
Remove uses of fee globals in wallet code
This commit does not change behavior.
Diffstat (limited to 'src/interfaces/chain.h')
-rw-r--r--src/interfaces/chain.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h
index 2e0328eb25..d0f74cb100 100644
--- a/src/interfaces/chain.h
+++ b/src/interfaces/chain.h
@@ -19,6 +19,7 @@ class CScheduler;
class CTransaction;
class uint256;
struct CBlockLocator;
+struct FeeCalculation;
namespace interfaces {
@@ -145,6 +146,15 @@ public:
//! Check chain limits.
virtual bool checkChainLimits(CTransactionRef tx) = 0;
+
+ //! Estimate smart fee.
+ virtual CFeeRate estimateSmartFee(int num_blocks, bool conservative, FeeCalculation* calc = nullptr) = 0;
+
+ //! Fee estimator max target.
+ virtual unsigned int estimateMaxBlocks() = 0;
+
+ //! Pool min fee.
+ virtual CFeeRate mempoolMinFee() = 0;
};
//! Interface to let node manage chain clients (wallets, or maybe tools for