diff options
author | jtimon <jtimon@monetize.io> | 2014-06-20 20:55:42 +0200 |
---|---|---|
committer | jtimon <jtimon@monetize.io> | 2014-08-23 13:21:51 +0200 |
commit | 654871d43677947d124673c9e0dd2984f0d3ca61 (patch) | |
tree | 7a8cdc2a1ef9f46ddecea998a07936f3a1481926 /src/test | |
parent | b343c1a1e34f851e70649ad1f49855a7d878f9ef (diff) |
replace ComputeMinWork with CheckMinWork
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/DoS_tests.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/test/DoS_tests.cpp b/src/test/DoS_tests.cpp index 5e17555e7a..bb15db43b1 100644 --- a/src/test/DoS_tests.cpp +++ b/src/test/DoS_tests.cpp @@ -106,11 +106,7 @@ static bool CheckNBits(unsigned int nbits1, int64_t time1, unsigned int nbits2, return CheckNBits(nbits2, time2, nbits1, time1); int64_t deltaTime = time2-time1; - uint256 required; - required.SetCompact(ComputeMinWork(nbits1, deltaTime)); - uint256 have; - have.SetCompact(nbits2); - return (have <= required); + return CheckMinWork(nbits2, nbits1, deltaTime); } BOOST_AUTO_TEST_CASE(DoS_checknbits) |