diff options
author | Jon Atack <jon@atack.com> | 2020-11-08 19:57:35 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2020-11-12 11:43:03 +0100 |
commit | 173b5b5fe07d45be5a1e5bc7a5df996f20ab1e85 (patch) | |
tree | 0241bef69ca5fe14f4e90cfb99fabc216d875c17 /src/test | |
parent | 7f9835a05abf3e168ad93e7195cbaa4bf61b9b07 (diff) |
wallet: update fee rate units, use sat/vB for fee_rate error messages
and BTC/kvB for feeRate error messages.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/amount_tests.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/amount_tests.cpp b/src/test/amount_tests.cpp index e20900ed13..c16519a6b1 100644 --- a/src/test/amount_tests.cpp +++ b/src/test/amount_tests.cpp @@ -98,7 +98,7 @@ BOOST_AUTO_TEST_CASE(BinaryOperatorTest) BOOST_CHECK(a <= a); BOOST_CHECK(b >= a); BOOST_CHECK(b >= b); - // a should be 0.00000002 BTC/kB now + // a should be 0.00000002 BTC/kvB now a += a; BOOST_CHECK(a == b); } @@ -107,7 +107,9 @@ BOOST_AUTO_TEST_CASE(ToStringTest) { CFeeRate feeRate; feeRate = CFeeRate(1); - BOOST_CHECK_EQUAL(feeRate.ToString(), "0.00000001 BTC/kB"); + BOOST_CHECK_EQUAL(feeRate.ToString(), "0.00000001 BTC/kvB"); + BOOST_CHECK_EQUAL(feeRate.ToString(FeeEstimateMode::BTC_KVB), "0.00000001 BTC/kvB"); + BOOST_CHECK_EQUAL(feeRate.ToString(FeeEstimateMode::SAT_VB), "0.001 sat/vB"); } BOOST_AUTO_TEST_SUITE_END() |