- 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:
0 feeRate = CFeeRate(123);
1 BOOST_CHECK_EQUAL(feeRate.GetFee(0), 123); // TODO: Should be 0
2 BOOST_CHECK_EQUAL(feeRate.GetFee(8), 123); // TODO: Should be 1
3 BOOST_CHECK_EQUAL(feeRate.GetFee(9), 1); // TODO: Should be 2
4 BOOST_CHECK_EQUAL(feeRate.GetFee(121), 14); // TODO: Should be 15
5 BOOST_CHECK_EQUAL(feeRate.GetFee(122), 15); // TODO: Should be 16
6 BOOST_CHECK_EQUAL(feeRate.GetFee(999), 122); // TODO: Should be 123