diff options
Diffstat (limited to 'src/interface')
-rw-r--r-- | src/interface/node.cpp | 2 | ||||
-rw-r--r-- | src/interface/node.h | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/interface/node.cpp b/src/interface/node.cpp index a8ed275dc5..f04da4e176 100644 --- a/src/interface/node.cpp +++ b/src/interface/node.cpp @@ -216,7 +216,9 @@ class NodeImpl : public Node return result; } CFeeRate getDustRelayFee() override { return ::dustRelayFee; } + CFeeRate getFallbackFee() override { CHECK_WALLET(return CWallet::fallbackFee); } CFeeRate getPayTxFee() override { CHECK_WALLET(return ::payTxFee); } + void setPayTxFee(CFeeRate rate) override { CHECK_WALLET(::payTxFee = rate); } UniValue executeRpc(const std::string& command, const UniValue& params, const std::string& uri) override { JSONRPCRequest req; diff --git a/src/interface/node.h b/src/interface/node.h index c73f45a1b0..6ae7f9e46c 100644 --- a/src/interface/node.h +++ b/src/interface/node.h @@ -173,9 +173,15 @@ public: //! Get dust relay fee. virtual CFeeRate getDustRelayFee() = 0; + //! Get fallback fee. + virtual CFeeRate getFallbackFee() = 0; + //! Get pay tx fee. virtual CFeeRate getPayTxFee() = 0; + //! Set pay tx fee. + virtual void setPayTxFee(CFeeRate rate) = 0; + //! Execute rpc command. virtual UniValue executeRpc(const std::string& command, const UniValue& params, const std::string& uri) = 0; |