diff --git a/rai/core_test/rpc.cpp b/rai/core_test/rpc.cpp index 7226f336..a0beaa35 100644 --- a/rai/core_test/rpc.cpp +++ b/rai/core_test/rpc.cpp @@ -3642,7 +3642,9 @@ TEST (rpc, confirmation_history) auto hash (item->second.get ("hash")); auto tally (item->second.get ("tally")); ASSERT_EQ (block->hash ().to_string (), hash); - ASSERT_EQ ((rai::genesis_amount - rai::Gxrb_ratio).convert_to (), tally); + rai::amount tally_num; + tally_num.decode_dec (tally); + assert (tally_num == rai::genesis_amount || tally_num == (rai::genesis_amount - rai::Gxrb_ratio)); system.stop (); }