MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ToString

Method ToString

src/policy/feerate.cpp:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29std::string CFeeRate::ToString(FeeRateFormat fee_rate_format) const
30{
31 const CAmount feerate_per_kvb{GetFeePerK()};
32 switch (fee_rate_format) {
33 case FeeRateFormat::BTC_KVB: return strprintf("%d.%08d %s/kvB", feerate_per_kvb / COIN, feerate_per_kvb % COIN, CURRENCY_UNIT);
34 case FeeRateFormat::SAT_VB: return strprintf("%d.%03d %s/vB", feerate_per_kvb / 1000, feerate_per_kvb % 1000, CURRENCY_ATOM);
35 } // no default case, so the compiler can warn about missing cases
36 assert(false);
37}

Callers 7

GetEntriesForConflictsFunction · 0.45
EntriesAndTxidsDisjointFunction · 0.45
PaysForRBFFunction · 0.45
CheckEphemeralSpendsFunction · 0.45
PackageTRUCChecksFunction · 0.45
SingleTRUCChecksFunction · 0.45
processTransactionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected