8#include <boost/test/unit_test.hpp>
10BOOST_AUTO_TEST_SUITE(feefrac_tests)
14 FeeFrac p1{1000, 100}, p2{500, 300};
100 FeeFrac oversized_1{4611686000000, 4000000};
101 FeeFrac oversized_2{184467440000000, 100000};
126 FeeFrac busted{(
static_cast<int64_t
>(INT32_MAX)) + 1, INT32_MAX};
129 FeeFrac max_fee{2100000000000000, INT32_MAX};
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(feefrac_operators)
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_CHECK(expr)
Data structure storing a fee and size, ordered by increasing fee/size.
int64_t EvaluateFeeDown(int32_t at_size) const noexcept
Compute the fee for a given size at_size using this object's feerate, rounding down.