From f591c3becafcdd7c81722c647865a1f908b6469a Mon Sep 17 00:00:00 2001 From: brunoerg Date: Thu, 14 Aug 2025 16:13:18 -0300 Subject: [PATCH] fees: make estimateSmartFee/HighestTargetTracked virtual for mocking --- src/policy/fees.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/policy/fees.h b/src/policy/fees.h index b355b65a346..e5820508cc5 100644 --- a/src/policy/fees.h +++ b/src/policy/fees.h @@ -224,7 +224,7 @@ public: * the closest target where one can be given. 'conservative' estimates are * valid over longer time horizons also. */ - CFeeRate estimateSmartFee(int confTarget, FeeCalculation *feeCalc, bool conservative) const + virtual CFeeRate estimateSmartFee(int confTarget, FeeCalculation *feeCalc, bool conservative) const EXCLUSIVE_LOCKS_REQUIRED(!m_cs_fee_estimator); /** Return a specific fee estimate calculation with a given success @@ -248,7 +248,7 @@ public: EXCLUSIVE_LOCKS_REQUIRED(!m_cs_fee_estimator); /** Calculation of highest target that estimates are tracked for */ - unsigned int HighestTargetTracked(FeeEstimateHorizon horizon) const + virtual unsigned int HighestTargetTracked(FeeEstimateHorizon horizon) const EXCLUSIVE_LOCKS_REQUIRED(!m_cs_fee_estimator); /** Drop still unconfirmed transactions and record current estimations, if the fee estimation file is present. */