Skip to content

Commit

Permalink
test: correct blockchain_tests
Browse files Browse the repository at this point in the history
the original blockchain_tests expects genesis to be sha256d mindiff
rather than digibyte's genesis which is scrypt mindiff.
  • Loading branch information
barrystyle committed Mar 9, 2021
1 parent 82414be commit 2d8894b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/blockchain_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ 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.
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 2d8894b

Please sign in to comment.