Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
update difficulty tests on Ropsten
Browse files Browse the repository at this point in the history
  • Loading branch information
winsvega committed Oct 9, 2018
1 parent e2b288d commit da587cb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/jsontests
13 changes: 13 additions & 0 deletions test/unittests/libethcore/difficulty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,19 @@ BOOST_AUTO_TEST_CASE(difficultyByzantium)
testDifficulty(testFileFullName, sealEngine);
}

BOOST_AUTO_TEST_CASE(difficultyConstantinople)
{
fs::path const testFileFullName = test::getTestPath() / fs::path("BasicTests/difficultyConstantinople.json");

Ethash sealEngine;
sealEngine.setChainParams(ChainParams(genesisInfo(eth::Network::ConstantinopleTest)));

if (dev::test::Options::get().filltests)
fillDifficulty(testFileFullName, sealEngine);

testDifficulty(testFileFullName, sealEngine);
}

BOOST_AUTO_TEST_CASE(difficultyTestsMainNetwork)
{
fs::path const testFileFullName = test::getTestPath() / fs::path("BasicTests/difficultyMainNetwork.json");
Expand Down

0 comments on commit da587cb

Please sign in to comment.