v31.1-roots.1 · Commit 3: [PATCH 03/17] feat(policy): preserve cluster accounting and repair dynamic dust
src/policy/feerate.h
Before: src/policy/feerate.h · After: src/policy/feerate.h
File metadata
index f6b49a1465b32475484a2153df6b36fdfa782380..52c3d68f115949a2ab10fdad528b2907dfb6a875 100644
Download original patch · Release notes
Diff rows 1–15 of 15. 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/feerate.h
CHANGED
|
@@ -59,7 +59,7 @@ public:
|
|
|
59
59
|
/**
|
|
60
60
|
* Return the fee in satoshis for a vsize of 1000 vbytes
|
|
61
61
|
*/
|
|
62
|
-
CAmount GetFeePerK() const { return CAmount(m_feerate.EvaluateFeeDown(1000)); }
|
|
62
|
+
CAmount GetFeePerK() const;
|
|
63
63
|
friend std::weak_ordering operator<=>(const CFeeRate& a, const CFeeRate& b) noexcept
|
|
64
64
|
{
|
|
65
65
|
return FeeRateCompare(a.m_feerate, b.m_feerate);
|
|
@@ -79,4 +79,7 @@ public:
|
|
|
79
79
|
SERIALIZE_METHODS(CFeeRate, obj) { READWRITE(obj.m_feerate.fee, obj.m_feerate.size); }
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
+
/** Scale a nonnegative sat/kvB dust estimate by a thousandths multiplier, saturating at INT64_MAX. */
|
|
83
|
+
CFeeRate ScaleDustFee(const CFeeRate& estimate, int multiplier);
|
|
84
|
+
|
|
82
85
|
#endif // BITCOIN_POLICY_FEERATE_H
|