| 1013 | } |
| 1014 | |
| 1015 | CAmount FeeFilterRounder::round(CAmount currentMinFee) |
| 1016 | { |
| 1017 | std::set<double>::iterator it = feeset.lower_bound(currentMinFee); |
| 1018 | if ((it != feeset.begin() && insecure_rand.rand32() % 3 != 0) || it == feeset.end()) { |
| 1019 | it--; |
| 1020 | } |
| 1021 | return static_cast<CAmount>(*it); |
| 1022 | } |