mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
rpc: Specify chain tip instead of chain in GetDifficulty
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user