From 03bfeee957ab7e3b6aece82b9561774648094f54 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Tue, 1 Dec 2020 11:24:33 +0100 Subject: [PATCH] interface: remove unused estimateSmartFee method from node Co-Authored-by: MarcoFalke Signed-off-by: Antoine Poinsot --- src/interfaces/node.h | 3 --- src/node/interfaces.cpp | 9 --------- 2 files changed, 12 deletions(-) diff --git a/src/interfaces/node.h b/src/interfaces/node.h index 5079be038e..36f76aeb4f 100644 --- a/src/interfaces/node.h +++ b/src/interfaces/node.h @@ -151,9 +151,6 @@ public: //! Get network active. virtual bool getNetworkActive() = 0; - //! Estimate smart fee. - virtual CFeeRate estimateSmartFee(int num_blocks, bool conservative, int* returned_target = nullptr) = 0; - //! Get dust relay fee. virtual CFeeRate getDustRelayFee() = 0; diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp index a8c8be05fb..02c5cbc6b1 100644 --- a/src/node/interfaces.cpp +++ b/src/node/interfaces.cpp @@ -221,15 +221,6 @@ public: } } bool getNetworkActive() override { return m_context->connman && m_context->connman->GetNetworkActive(); } - CFeeRate estimateSmartFee(int num_blocks, bool conservative, int* returned_target = nullptr) override - { - FeeCalculation fee_calc; - CFeeRate result = ::feeEstimator.estimateSmartFee(num_blocks, &fee_calc, conservative); - if (returned_target) { - *returned_target = fee_calc.returnedTarget; - } - return result; - } CFeeRate getDustRelayFee() override { return ::dustRelayFee; } UniValue executeRpc(const std::string& command, const UniValue& params, const std::string& uri) override {