Fix rpc.confirmation_history test (#1027)

This commit is contained in:
Lee Bousfield 2018-08-05 17:01:10 -06:00 committed by GitHub
commit 726fd3e47d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3642,7 +3642,9 @@ TEST (rpc, confirmation_history)
auto hash (item->second.get<std::string> ("hash"));
auto tally (item->second.get<std::string> ("tally"));
ASSERT_EQ (block->hash ().to_string (), hash);
ASSERT_EQ ((rai::genesis_amount - rai::Gxrb_ratio).convert_to<std::string> (), 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 ();
}