From 89480790f198e7107c969de625e4a726fde8f573 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Mon, 29 Jan 2024 16:09:31 -0500 Subject: [PATCH] Revert test disable. --- test/chain/chain_state.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/chain/chain_state.cpp b/test/chain/chain_state.cpp index 0d7d6154f4..0b860d2124 100644 --- a/test/chain/chain_state.cpp +++ b/test/chain/chain_state.cpp @@ -36,15 +36,15 @@ chain::chain_state::data get_values(size_t retargeting_interval) return values; } -////BOOST_AUTO_TEST_CASE(chain_state__work_required_retarget__overflow_patch_disabled__lower_value) -////{ -//// settings settings(chain::selection::mainnet); -//// settings.proof_of_work_limit = 0x1e0fffff; -//// const auto values = get_values(settings.retargeting_interval()); -//// const auto forks = chain::forks::retarget; -//// const auto work = test_chain_state::work_required(values, forks, settings); -//// BOOST_REQUIRE_EQUAL(work, 0x1e0884d1u); -////} +BOOST_AUTO_TEST_CASE(chain_state__work_required_retarget__overflow_patch_disabled__lower_value) +{ + settings settings(chain::selection::mainnet); + settings.proof_of_work_limit = 0x1e0fffff; + const auto values = get_values(settings.retargeting_interval()); + const auto forks = chain::forks::retarget; + const auto work = test_chain_state::work_required(values, forks, settings); + BOOST_REQUIRE_EQUAL(work, 0x1e0884d1u); +} BOOST_AUTO_TEST_CASE(chain_state__work_required_retarget__overflow_patch_enabled__correct_value) {