diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2019-03-06 16:47:57 -0500 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2019-03-06 16:47:57 -0500 |
commit | d358466de15ef29c1d2bccb9aebab360d574d1d0 (patch) | |
tree | 731dd3ff9701381826ca0d0e3598f2de488b812b /src/interfaces/chain.h | |
parent | b1b2b238928e7be044ad62cf1b222464907ece2c (diff) |
Remove remaining wallet accesses to node globals
Diffstat (limited to 'src/interfaces/chain.h')
-rw-r--r-- | src/interfaces/chain.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h index b4db9dda15..a9b05f27fc 100644 --- a/src/interfaces/chain.h +++ b/src/interfaces/chain.h @@ -202,6 +202,15 @@ public: //! Mempool minimum fee. virtual CFeeRate mempoolMinFee() = 0; + //! Relay current minimum fee (from -minrelaytxfee and -incrementalrelayfee settings). + virtual CFeeRate relayMinFee() = 0; + + //! Relay incremental fee setting (-incrementalrelayfee), reflecting cost of relay. + virtual CFeeRate relayIncrementalFee() = 0; + + //! Relay dust fee setting (-dustrelayfee), reflecting lowest rate it's economical to spend. + virtual CFeeRate relayDustFee() = 0; + //! Node max tx fee setting (-maxtxfee). //! This could be replaced by a per-wallet max fee, as proposed at //! https://github.com/bitcoin/bitcoin/issues/15355 @@ -214,9 +223,12 @@ public: //! Check if p2p enabled. virtual bool p2pEnabled() = 0; - // Check if in IBD. + //! Check if in IBD. virtual bool isInitialBlockDownload() = 0; + //! Check if shutdown requested. + virtual bool shutdownRequested() = 0; + //! Get adjusted time. virtual int64_t getAdjustedTime() = 0; @@ -232,6 +244,9 @@ public: //! Send wallet load notification to the GUI. virtual void loadWallet(std::unique_ptr<Wallet> wallet) = 0; + //! Send progress indicator. + virtual void showProgress(const std::string& title, int progress, bool resume_possible) = 0; + //! Chain notifications. class Notifications { |