Skip to content

Commit 03bfeee

Browse files
darosiorMarcoFalke
andcommitted
interface: remove unused estimateSmartFee method from node
Co-Authored-by: MarcoFalke <[email protected]> Signed-off-by: Antoine Poinsot <[email protected]>
1 parent 681ce59 commit 03bfeee

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/interfaces/node.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,6 @@ class Node
151151
//! Get network active.
152152
virtual bool getNetworkActive() = 0;
153153

154-
//! Estimate smart fee.
155-
virtual CFeeRate estimateSmartFee(int num_blocks, bool conservative, int* returned_target = nullptr) = 0;
156-
157154
//! Get dust relay fee.
158155
virtual CFeeRate getDustRelayFee() = 0;
159156

src/node/interfaces.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,6 @@ class NodeImpl : public Node
221221
}
222222
}
223223
bool getNetworkActive() override { return m_context->connman && m_context->connman->GetNetworkActive(); }
224-
CFeeRate estimateSmartFee(int num_blocks, bool conservative, int* returned_target = nullptr) override
225-
{
226-
FeeCalculation fee_calc;
227-
CFeeRate result = ::feeEstimator.estimateSmartFee(num_blocks, &fee_calc, conservative);
228-
if (returned_target) {
229-
*returned_target = fee_calc.returnedTarget;
230-
}
231-
return result;
232-
}
233224
CFeeRate getDustRelayFee() override { return ::dustRelayFee; }
234225
UniValue executeRpc(const std::string& command, const UniValue& params, const std::string& uri) override
235226
{

0 commit comments

Comments
 (0)