v30.3-roots.1 · Commit 3: [PATCH 03/68] feat(policy): preserve Roots relay and network controls on Core 30.3
src/policy/feerate.cpp
Before: src/policy/feerate.cpp · After: src/policy/feerate.cpp
File metadata
index f74da8a7e2283fcb3c3af12ad3170d4a4787c7c7..f95bf82f6b8a0770ddb843c254a490303c5fc1b8 100644
Download original patch · Release notes
Diff rows 1–8 of 8. 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.cpp
CHANGED
|
@@ -34,3 +34,8 @@ std::string CFeeRate::ToString(const FeeEstimateMode& fee_estimate_mode) const
|
|
|
34
34
|
default: return strprintf("%d.%08d %s/kvB", feerate_per_kvb / COIN, feerate_per_kvb % COIN, CURRENCY_UNIT);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
+
|
|
38
|
+
std::string CFeeRate::SatsToString() const {
|
|
39
|
+
const CAmount feerate_per_kvb = GetFeePerK();
|
|
40
|
+
return strprintf("%d.%03d", feerate_per_kvb / 1000, feerate_per_kvb % 1000);
|
|
41
|
+
}
|