]> Git Repo - VerusCoin.git/commitdiff
test
authorjl777 <[email protected]>
Mon, 24 Oct 2016 09:27:32 +0000 (06:27 -0300)
committerjl777 <[email protected]>
Mon, 24 Oct 2016 09:27:32 +0000 (06:27 -0300)
src/komodo.h
src/miner.cpp

index c983fde35bd2944a1ca64263fcde01159a530149..05814cd9558afcb476c049d87c6e24c23a096956 100644 (file)
@@ -16,6 +16,8 @@
 #ifndef H_KOMODO_H
 #define H_KOMODO_H
 
+// Todo: handle reorg
+
 #include <stdint.h>
 #include <stdio.h>
 #include <pthread.h>
index c14a76d53bf6d31860968882a6e85ee8e189b5c9..da2b094ef37f7d78f905799ef23ef21e59702ec6 100644 (file)
@@ -523,12 +523,12 @@ void static BitcoinMiner(CWallet *pwallet)
             //
             int32_t notaryid; uint32_t savebits; int64_t nStart = GetTime();
             savebits = pblock->nBits;
+            arith_uint256 hashTarget = arith_uint256().SetCompact(pblock->nBits);
             if ( komodo_chosennotary(&notaryid,pindexPrev->nHeight+1,NOTARY_PUBKEY33) > 0 )
             {
-                pblock->nBits = KOMODO_MINDIFF_NBITS;
+                hashTarget = arith_uint256().SetCompact(KOMODO_MINDIFF_NBITS);
                 //fprintf(stderr,"I am the chosen one for ht.%d\n",pindexPrev->nHeight+1);
             }
-            arith_uint256 hashTarget = arith_uint256().SetCompact(pblock->nBits);
 
             while (true)
             {
This page took 0.028851 seconds and 4 git commands to generate.