git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Forgot to correct interval calculation :(
[novacoin.git]
/
src
/
kernel.cpp
diff --git
a/src/kernel.cpp
b/src/kernel.cpp
index
55904e1
..
7d8a66a
100644
(file)
--- a/
src/kernel.cpp
+++ b/
src/kernel.cpp
@@
-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];