MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / FeeFilterRounder

Method FeeFilterRounder

src/policy/fees.cpp:997–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

995}
996
997FeeFilterRounder::FeeFilterRounder(const CFeeRate& minIncrementalFee)
998{
999 CAmount minFeeLimit = std::max(CAmount(1), minIncrementalFee.GetFeePerK() / 2);
1000 feeset.insert(0);
1001 for (double bucketBoundary = minFeeLimit; bucketBoundary <= MAX_FILTER_FEERATE; bucketBoundary *= FEE_FILTER_SPACING) {
1002 feeset.insert(bucketBoundary);
1003 }
1004}
1005
1006CAmount FeeFilterRounder::round(CAmount currentMinFee)
1007{

Callers

nothing calls this directly

Calls 3

maxFunction · 0.85
GetFeePerKMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected