git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
544c4cb
)
FOR loop reformatting.
author
CryptoManiac
<balthazar@yandex.ru>
Wed, 1 Apr 2015 17:42:52 +0000 (20:42 +0300)
committer
CryptoManiac
<balthazar@yandex.ru>
Wed, 1 Apr 2015 20:32:26 +0000 (23:32 +0300)
src/kernel.cpp
patch
|
blob
|
history
diff --git
a/src/kernel.cpp
b/src/kernel.cpp
index
14fa4d2
..
a3ec598
100644
(file)
--- a/
src/kernel.cpp
+++ b/
src/kernel.cpp
@@
-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);