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

Method round

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

Source from the content-addressed store, hash-verified

1004}
1005
1006CAmount FeeFilterRounder::round(CAmount currentMinFee)
1007{
1008 std::set<double>::iterator it = feeset.lower_bound(currentMinFee);
1009 if ((it != feeset.begin() && insecure_rand.rand32() % 3 != 0) || it == feeset.end()) {
1010 it--;
1011 }
1012 return static_cast<CAmount>(*it);
1013}

Callers 1

SendMessagesMethod · 0.80

Calls 4

lower_boundMethod · 0.80
rand32Method · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected