Skip to content

Commit 22d5d4b

Browse files
committed
tx fees, policy: doc: update and delete unnecessary comment
1 parent 60d3e4b commit 22d5d4b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/policy/fees.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,14 +548,12 @@ CBlockPolicyEstimator::CBlockPolicyEstimator(const fs::path& estimation_filepath
548548

549549
AutoFile est_file{fsbridge::fopen(m_estimation_filepath, "rb")};
550550

551-
// Whenever the fee estimation file is not present return early
552551
if (est_file.IsNull()) {
553552
LogPrintf("%s is not found. Continue anyway.\n", fs::PathToString(m_estimation_filepath));
554553
return;
555554
}
556555

557556
std::chrono::hours file_age = GetFeeEstimatorFileAge();
558-
// fee estimate file must not be too old to avoid wrong fee estimates.
559557
if (file_age > MAX_FILE_AGE && !read_stale_estimates) {
560558
LogPrintf("Fee estimation file %s too old (age=%lld > %lld hours) and will not be used to avoid serving stale estimates.\n", fs::PathToString(m_estimation_filepath), Ticks<std::chrono::hours>(file_age), Ticks<std::chrono::hours>(MAX_FILE_AGE));
561559
return;

src/policy/fees.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
// How often to flush fee estimates to fee_estimates.dat.
2626
static constexpr std::chrono::hours FEE_FLUSH_INTERVAL{1};
2727

28-
/** fee_estimates.dat that are more than 60 hours (2.5 days) will not be read,
29-
* as the estimates in the file are stale.
28+
/** fee_estimates.dat that are more than 60 hours (2.5 days) old will not be read,
29+
* as fee estimates are based on historical data and may be inaccurate if
30+
* network activity has changed.
3031
*/
3132
static constexpr std::chrono::hours MAX_FILE_AGE{60};
3233

0 commit comments

Comments
 (0)