X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fkernel.cpp;h=2873c414308c795dabb53538d14d4c87650d4569;hb=c2ce8b8f4ad4eb8a0eb28515cdbc6b2ff2542c64;hp=44ecac799c302827fb89e039e54e3432275cf9f1;hpb=084f1d4d056360f44ab189c50fe7e2043c160307;p=novacoin.git diff --git a/src/kernel.cpp b/src/kernel.cpp index 44ecac7..2873c41 100644 --- a/src/kernel.cpp +++ b/src/kernel.cpp @@ -512,10 +512,10 @@ public: sha256_init_4way(state1); sha256_init_4way(state2); - blocks1[24] = nTimeTx; - blocks1[25] = ++nTimeTx; - blocks1[26] = ++nTimeTx; - blocks1[27] = ++nTimeTx; + blocks1[24] = nTimeTx++; + blocks1[25] = nTimeTx++; + blocks1[26] = nTimeTx++; + blocks1[27] = nTimeTx++; sha256_transform_4way(&state1[0], &blocks1[0], 1); // first hashing @@ -526,11 +526,11 @@ public: for(int nResult = 0; nResult < 4; nResult++) { - uint32_t nTime = blocks1[24+nResult]; uint32_t nHash = __builtin_bswap32(state2[28+nResult]); if (nHash <= nMaxTarget32) // Possible hit { + uint32_t nTime = blocks1[24+nResult]; uint256 nHashProofOfStake = 0; uint32_t *pnHashProofOfStake = (uint32_t *) &nHashProofOfStake; pnHashProofOfStake[7] = nHash;