- This flag causes rounding up to the next satoshi instead of just truncating (default behavior)
- This reverts the hard-to-read and buggy code introduced in d88af560111863c3e9c1ae855dcc287f04dffb02 (#4465)
master happily produces the following results:
feeRate = CFeeRate(123);
BOOST_CHECK_EQUAL(feeRate.GetFee(0), 123); // TODO: Should be 0
BOOST_CHECK_EQUAL(feeRate.GetFee(8), 123); // TODO: Should be 1
BOOST_CHECK_EQUAL(feeRate.GetFee(9), 1); // TODO: Should be 2
BOOST_CHECK_EQUAL(feeRate.GetFee(121), 14); // TODO: Should be 15
BOOST_CHECK_EQUAL(feeRate.GetFee(122), 15); // TODO: Should be 16
BOOST_CHECK_EQUAL(feeRate.GetFee(999), 122); // TODO: Should be 123