FOR loop reformatting.
authorCryptoManiac <balthazar@yandex.ru>
Wed, 1 Apr 2015 17:42:52 +0000 (20:42 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Wed, 1 Apr 2015 20:32:26 +0000 (23:32 +0300)
src/kernel.cpp

index 14fa4d2..a3ec598 100644 (file)
@@ -561,10 +561,8 @@ bool ScanInputForStakeKernelHash(CTransaction &tx, uint32_t nOut, uint32_t nBits
 
     // Search forward in time from the given timestamp
     // Stopping search in case of shutting down
-    for (unsigned int n=0; n<nSearchInterval && !fShutdown; n++)
+    for (uint32_t nTimeTx=nTime; nTimeTx<nTime+nSearchInterval && !fShutdown; nTimeTx++)
     {
-        uint32_t nTimeTx = nTime + n;
-
         // Complete first hashing iteration
         uint256 hash1;
         SHA256_Update(&ctxCurrent, (unsigned char*)&nTimeTx, 4);