Fix stake miner interval checking.
author0xDEADFACE <masmfan@gmail.com>
Mon, 19 Oct 2015 20:33:44 +0000 (13:33 -0700)
committer0xDEADFACE <masmfan@gmail.com>
Mon, 19 Oct 2015 20:33:44 +0000 (13:33 -0700)
novacoin-qt.pro
src/kernel_worker.cpp

index 36a8d5f..eb46b79 100644 (file)
@@ -13,7 +13,6 @@ freebsd-g++: QMAKE_TARGET.arch = $$QMAKE_HOST.arch
 linux-g++: QMAKE_TARGET.arch = $$QMAKE_HOST.arch
 linux-g++-32: QMAKE_TARGET.arch = i686
 linux-g++-64: QMAKE_TARGET.arch = x86_64
-linux-g++-64: QMAKE_TARGET.arch = x86_64
 win32-g++-cross: QMAKE_TARGET.arch = $$TARGET_PLATFORM
 
 # for boost 1.37, add -mt to the boost libraries
index 3ffb080..4c5f245 100644 (file)
@@ -421,7 +421,7 @@ bool ScanKernelBackward_8way(unsigned char *kernel, uint32_t nBits, uint32_t nIn
 
     // Search forward in time from the given timestamp
     // Stopping search in case of shutting down
-    for (uint32_t nTimeTx=SearchInterval.first, nMaxTarget32 = nMaxTarget.Get32(7); nTimeTx<SearchInterval.second && !fShutdown; nTimeTx -=8)
+    for (uint32_t nTimeTx=SearchInterval.first, nMaxTarget32 = nMaxTarget.Get32(7); nTimeTx>SearchInterval.second && !fShutdown; nTimeTx -=8)
     {
         sha256_init_8way(blocks2);
         sha256_init_8way(candidates);
@@ -500,7 +500,7 @@ bool ScanKernelBackward_4Way(unsigned char *kernel, uint32_t nBits, uint32_t nIn
 
     // Search forward in time from the given timestamp
     // Stopping search in case of shutting down
-    for (uint32_t nTimeTx=SearchInterval.first, nMaxTarget32 = nMaxTarget.Get32(7); nTimeTx<SearchInterval.second && !fShutdown; nTimeTx -=4)
+    for (uint32_t nTimeTx=SearchInterval.first, nMaxTarget32 = nMaxTarget.Get32(7); nTimeTx>SearchInterval.second && !fShutdown; nTimeTx -=4)
     {
         sha256_init_4way(blocks2);
         sha256_init_4way(candidates);