v30.3-roots.1 · Commit 3: [PATCH 03/68] feat(policy): preserve Roots relay and network controls on Core 30.3
src/policy/fees.h
Before: src/policy/fees.h · After: src/policy/fees.h
File metadata
index b355b65a346868982b982deb9e072cfe61a1d627..844e1aed739e7f49cc117955f45d6d754796eb84 100644
Download original patch · Release notes
Diff rows 1–23 of 23. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
src/policy/fees.h
CHANGED
|
@@ -147,7 +147,7 @@ struct FeeCalculation
|
|
|
147
147
|
*/
|
|
148
148
|
class CBlockPolicyEstimator : public CValidationInterface
|
|
149
149
|
{
|
|
150
|
-
private:
|
|
150
|
+
public:
|
|
151
151
|
/** Track confirm delays up to 12 blocks for short horizon */
|
|
152
152
|
static constexpr unsigned int SHORT_BLOCK_PERIODS = 12;
|
|
153
153
|
static constexpr unsigned int SHORT_SCALE = 1;
|
|
@@ -157,6 +157,7 @@ private:
|
|
|
157
157
|
/** Track confirm delays up to 1008 blocks for long horizon */
|
|
158
158
|
static constexpr unsigned int LONG_BLOCK_PERIODS = 42;
|
|
159
159
|
static constexpr unsigned int LONG_SCALE = 24;
|
|
160
|
+
private:
|
|
160
161
|
/** Historical estimates that are older than this aren't valid */
|
|
161
162
|
static const unsigned int OLDEST_ESTIMATE_HISTORY = 6 * 1008;
|
|
162
163
|
|
|
@@ -256,7 +257,7 @@ public:
|
|
|
256
257
|
EXCLUSIVE_LOCKS_REQUIRED(!m_cs_fee_estimator);
|
|
257
258
|
|
|
258
259
|
/** Record current fee estimations. */
|
|
259
|
-
void FlushFeeEstimates()
|
|
260
|
+
bool FlushFeeEstimates() const
|
|
260
261
|
EXCLUSIVE_LOCKS_REQUIRED(!m_cs_fee_estimator);
|
|
261
262
|
|
|
262
263
|
/** Calculates the age of the file, since last modified */
|