MCPcopy Create free account
hub / github.com/ElementsProject/elements / FeeFilterRounder

Method FeeFilterRounder

src/policy/fees.cpp:1006–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1004}
1005
1006FeeFilterRounder::FeeFilterRounder(const CFeeRate& minIncrementalFee)
1007{
1008 CAmount minFeeLimit = std::max(CAmount(1), minIncrementalFee.GetFeePerK() / 2);
1009 feeset.insert(0);
1010 for (double bucketBoundary = minFeeLimit; bucketBoundary <= MAX_FILTER_FEERATE; bucketBoundary *= FEE_FILTER_SPACING) {
1011 feeset.insert(bucketBoundary);
1012 }
1013}
1014
1015CAmount FeeFilterRounder::round(CAmount currentMinFee)
1016{

Callers

nothing calls this directly

Calls 2

GetFeePerKMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected