|
|
@ -65,7 +65,7 @@ BOOST_AUTO_TEST_CASE(GetFeeTest) |
|
|
|
BOOST_CHECK(CFeeRate(CAmount(26), 789) == CFeeRate(32)); |
|
|
|
BOOST_CHECK(CFeeRate(CAmount(26), 789) == CFeeRate(32)); |
|
|
|
BOOST_CHECK(CFeeRate(CAmount(27), 789) == CFeeRate(34)); |
|
|
|
BOOST_CHECK(CFeeRate(CAmount(27), 789) == CFeeRate(34)); |
|
|
|
// Maximum size in bytes, should not crash
|
|
|
|
// Maximum size in bytes, should not crash
|
|
|
|
CFeeRate(MAX_MONEY, (std::numeric_limits<size_t>::max() >> 1) - 1).GetFeePerK(); |
|
|
|
CFeeRate(MAX_MONEY, std::numeric_limits<size_t>::max() >> 1).GetFeePerK(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_SUITE_END() |
|
|
|
BOOST_AUTO_TEST_SUITE_END() |
|
|
|