rpc: Specify chain tip instead of chain in GetDifficulty

This commit is contained in:
João Barbosa
2018-01-11 13:11:10 +00:00
parent 54dc13b6a2
commit 343b98cbcd
2 changed files with 8 additions and 18 deletions

View File

@@ -68,11 +68,4 @@ BOOST_AUTO_TEST_CASE(get_difficulty_for_very_high_target)
TestDifficulty(0x12345678, 5913134931067755359633408.0);
}
// Verify that difficulty is 1.0 for an empty chain.
BOOST_AUTO_TEST_CASE(get_difficulty_for_null_tip)
{
double difficulty = GetDifficulty(nullptr);
RejectDifficultyMismatch(difficulty, 1.0);
}
BOOST_AUTO_TEST_SUITE_END()