Skip to content

Commit

Permalink
Merge pull request digibyte#11 from barrystyle/tests/blockchain_tests
Browse files Browse the repository at this point in the history
test: correct blockchain_tests
  • Loading branch information
gto90 committed Apr 1, 2021
2 parents 5462e50 + db58b1e commit 3832a2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/blockchain_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ BOOST_AUTO_TEST_CASE(get_difficulty_for_very_high_target)
TestDifficulty(0x12345678, 5913134931067755359633408.0);
}

// Verify that difficulty is 1.0 for an empty chain.
// Verify that difficulty is 0.00024414 for an empty chain.
// Genesis Block (scrypt pow) has 0x1e0ffff0 set as difficulty.
BOOST_AUTO_TEST_CASE(get_difficulty_for_null_tip)
{
double difficulty = GetDifficulty(nullptr);
RejectDifficultyMismatch(difficulty, 1.0);
RejectDifficultyMismatch(difficulty, 0.00024414);
}

BOOST_AUTO_TEST_SUITE_END()

0 comments on commit 3832a2d

Please sign in to comment.