diff options
| author | Ross Nicoll <[email protected]> | 2018-09-19 15:58:29 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2021-05-20 12:02:35 +0100 |
| commit | 0817a1bced90d59fb4d268c77f6c46ff1b02b012 (patch) | |
| tree | b125c9ea669fd1c3761cdbaa6872ad228443a232 /src/test/versionbits_tests.cpp | |
| parent | Adjust download timeouts to handle shorter block interval (#1866) (diff) | |
| download | discoin-0817a1bced90d59fb4d268c77f6c46ff1b02b012.tar.xz discoin-0817a1bced90d59fb4d268c77f6c46ff1b02b012.zip | |
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.
Diffstat (limited to 'src/test/versionbits_tests.cpp')
| -rw-r--r-- | src/test/versionbits_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<<bit)) != 0); BOOST_CHECK_EQUAL(ComputeBlockVersion(lastBlock, mainnetParams) & VERSIONBITS_TOP_MASK, VERSIONBITS_TOP_BITS); blocksToMine--; - nTime += 600; + nTime += 60; nHeight += 1; } |