Skip to content

Commit e0738e3

Browse files
committed
remove default argument from estimateSmartFee
1 parent d507c30 commit e0738e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/policy/fees.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class CBlockPolicyEstimator
204204
* the closest target where one can be given. 'conservative' estimates are
205205
* valid over longer time horizons also.
206206
*/
207-
CFeeRate estimateSmartFee(int confTarget, FeeCalculation *feeCalc, const CTxMemPool& pool, bool conservative = true) const;
207+
CFeeRate estimateSmartFee(int confTarget, FeeCalculation *feeCalc, const CTxMemPool& pool, bool conservative) const;
208208

209209
/** Return a specific fee estimate calculation with a given success
210210
* threshold and time horizon, and optionally return detailed data about

src/test/policyestimator_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ BOOST_AUTO_TEST_CASE(BlockPolicyEstimates)
184184
mpool.TrimToSize(1);
185185
BOOST_CHECK(mpool.GetMinFee(1).GetFeePerK() > feeV[5]);
186186
for (int i = 1; i < 10; i++) {
187-
BOOST_CHECK(feeEst.estimateSmartFee(i, NULL, mpool).GetFeePerK() >= feeEst.estimateRawFee(i, 0.85, FeeEstimateHorizon::MED_HALFLIFE).GetFeePerK());
188-
BOOST_CHECK(feeEst.estimateSmartFee(i, NULL, mpool).GetFeePerK() >= mpool.GetMinFee(1).GetFeePerK());
187+
BOOST_CHECK(feeEst.estimateSmartFee(i, NULL, mpool, true).GetFeePerK() >= feeEst.estimateRawFee(i, 0.85, FeeEstimateHorizon::MED_HALFLIFE).GetFeePerK());
188+
BOOST_CHECK(feeEst.estimateSmartFee(i, NULL, mpool, true).GetFeePerK() >= mpool.GetMinFee(1).GetFeePerK());
189189
}
190190
}
191191

0 commit comments

Comments
 (0)