Forgot to correct interval calculation :(
authorCryptoManiac <balthazar.ad@gmail.com>
Fri, 2 Oct 2015 08:26:57 +0000 (01:26 -0700)
committerCryptoManiac <balthazar.ad@gmail.com>
Fri, 2 Oct 2015 08:26:57 +0000 (01:26 -0700)
src/kernel.cpp

index 55904e1..7d8a66a 100644 (file)
@@ -523,7 +523,7 @@ bool ScanMidstateForward(SHA256_CTX &ctx, uint32_t nBits, uint32_t nInputTxTime,
 
     uint32_t nBegin = SearchInterval.first;
     uint32_t nEnd = SearchInterval.second;
-    uint32_t nPart = (nEnd - nBegin) / 4;
+    uint32_t nPart = (nEnd - nBegin) / nThreads;
 
     ScanMidstateWorker *workers = new ScanMidstateWorker[nThreads];