| 1004 | } |
| 1005 | |
| 1006 | CAmount 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 | } |
no test coverage detected