Skip to content
Bitcoin Roots

v29.4-roots.1 · Commit 3: [PATCH 03/13] policy: restore conservative relay and network controls

src/policy/feerate.cpp

Before: src/policy/feerate.cpp · After: src/policy/feerate.cpp

File metadata
index eb0cba5c67a406ea9d2a3500e6be90b2f2f21b96..34795a84fc368eeee7f63e1a1f0e79c8932dd5fc 100644

Download original patch · Release notes

Diff rows 1–7 of 7. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

src/policy/feerate.cpp CHANGED
@@ -43,3 +43,7 @@ std::string CFeeRate::ToString(const FeeEstimateMode& fee_estimate_mode) const
43
  default: return strprintf("%d.%08d %s/kvB", nSatoshisPerK / COIN, nSatoshisPerK % COIN, CURRENCY_UNIT);
44
  }
45
  }
 
 
 
 
 
43
  default: return strprintf("%d.%08d %s/kvB", nSatoshisPerK / COIN, nSatoshisPerK % COIN, CURRENCY_UNIT);
44
  }
45
  }
46
+
47
+ std::string CFeeRate::SatsToString() const {
48
+ return strprintf("%d.%03d", nSatoshisPerK / 1000, nSatoshisPerK % 1000);
49
+ }