From 645028b6a67e831998b8f34330b99edd456c12b9 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Tue, 9 Oct 2018 17:45:02 +0300 Subject: [PATCH] update difficulty tests on Ropsten --- test/jsontests | 2 +- test/unittests/libethcore/difficulty.cpp | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/test/jsontests b/test/jsontests index 109c8462aa3..9554b9fdbde 160000 --- a/test/jsontests +++ b/test/jsontests @@ -1 +1 @@ -Subproject commit 109c8462aa36c4d029c455271b712df1663fd556 +Subproject commit 9554b9fdbde711110f51fa7df82b9ad2da26c601 diff --git a/test/unittests/libethcore/difficulty.cpp b/test/unittests/libethcore/difficulty.cpp index 48d7c830820..85506664b9c 100644 --- a/test/unittests/libethcore/difficulty.cpp +++ b/test/unittests/libethcore/difficulty.cpp @@ -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");