Fix rpc.confirmation_history test (#1027)
This commit is contained in:
parent
d1699c8f4a
commit
726fd3e47d
1 changed files with 3 additions and 1 deletions
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue