aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2014-04-12 17:35:36 +0100
committerRoss Nicoll <[email protected]>2014-04-12 17:35:36 +0100
commite2d32cebea9fa8aa8fad891cbcb9a347bdf40a02 (patch)
tree09a1ba78924f0b4e47a3f16883e1abd956d0e6e5 /src/test
parentMerge pull request #427 from jwiechers/patch-2 (diff)
downloaddiscoin-e2d32cebea9fa8aa8fad891cbcb9a347bdf40a02.tar.xz
discoin-e2d32cebea9fa8aa8fad891cbcb9a347bdf40a02.zip
Changed the time period covered for DoS tests from 4 days to 3, to take into account massively reduced retarget time from DigiShield.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/DoS_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/DoS_tests.cpp b/src/test/DoS_tests.cpp
index e3e29a6ea..c92a18500 100644
--- a/src/test/DoS_tests.cpp
+++ b/src/test/DoS_tests.cpp
@@ -137,7 +137,7 @@ BOOST_AUTO_TEST_CASE(DoS_checknbits)
// First checkpoint difficulty at or a while after the last checkpoint time should fail when
// compared to last checkpoint
BOOST_CHECK(!CheckNBits(firstcheck.second, lastcheck.first+60*10, lastcheck.second, lastcheck.first));
- BOOST_CHECK(!CheckNBits(firstcheck.second, lastcheck.first+60*60*24*4, lastcheck.second, lastcheck.first));
+ BOOST_CHECK(!CheckNBits(firstcheck.second, lastcheck.first+60*60*24*3, lastcheck.second, lastcheck.first));
// ... but OK if enough time passed for difficulty to adjust downward:
BOOST_CHECK(CheckNBits(firstcheck.second, lastcheck.first+60*60*24*365*4, lastcheck.second, lastcheck.first));