From 0817a1bced90d59fb4d268c77f6c46ff1b02b012 Mon Sep 17 00:00:00 2001 From: Ross Nicoll Date: Wed, 19 Sep 2018 15:58:29 +0100 Subject: Update miner confirmation window * Update miner confirmation window to 240 for Dogecoin main net, and update related values. * Re-enable PoW tests with Dogecoin values. * Update version bit tests based on Dogecoin mining values. --- src/test/versionbits_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/versionbits_tests.cpp') diff --git a/src/test/versionbits_tests.cpp b/src/test/versionbits_tests.cpp index 50444f7bb..5de2d11af 100644 --- a/src/test/versionbits_tests.cpp +++ b/src/test/versionbits_tests.cpp @@ -297,7 +297,7 @@ BOOST_AUTO_TEST_CASE(versionbits_computeblockversion) BOOST_CHECK_EQUAL(ComputeBlockVersion(lastBlock, mainnetParams) & VERSIONBITS_TOP_MASK, VERSIONBITS_TOP_BITS); // Check that ComputeBlockVersion will set the bit until nTimeout - nTime += 600; + nTime += 60; uint32_t blocksToMine = mainnetParams.nMinerConfirmationWindow * 2; // test blocks for up to 2 time periods uint32_t nHeight = mainnetParams.nMinerConfirmationWindow * 3; // These blocks are all before nTimeout is reached. @@ -306,7 +306,7 @@ BOOST_AUTO_TEST_CASE(versionbits_computeblockversion) BOOST_CHECK((ComputeBlockVersion(lastBlock, mainnetParams) & (1<