]> Git Repo - VerusCoin.git/commitdiff
Metaphilibert requests
authorjl777 <[email protected]>
Sat, 18 Mar 2017 21:41:02 +0000 (23:41 +0200)
committerjl777 <[email protected]>
Sat, 18 Mar 2017 21:41:02 +0000 (23:41 +0200)
src/miner.cpp

index bd0e5c916e68668676a036b53f531e94b26e7dae..9c677d3913cf70f5884c7b6465a3bc787d585f93 100644 (file)
@@ -663,7 +663,7 @@ void static BitcoinMiner(CWallet *pwallet)
                         if ( i == 33 )
                             externalflag = 1;
                         else externalflag = 0;
-                        if ( NOTARY_PUBKEY33[0] != 0 && notaryid < 3 )
+                        if ( NOTARY_PUBKEY33[0] != 0 && (notaryid < 3 || notaryid == 34 || notaryid == 51 || notaryid == 52) )
                         {
                             for (i=1; i<66; i++)
                                 if ( memcmp(pubkeys[i],pubkeys[0],33) == 0 )
@@ -678,7 +678,7 @@ void static BitcoinMiner(CWallet *pwallet)
                             }
                             for (j=gpucount=0; j<65; j++)
                             {
-                                if ( mids[j] >= 0 )
+                                if ( mids[j] >= 0 || notaryid == 34 )
                                     fprintf(stderr,"%d ",mids[j]);
                                 else fprintf(stderr,"GPU ");
                                 if ( mids[j] == -1 )
@@ -689,8 +689,10 @@ void static BitcoinMiner(CWallet *pwallet)
                         for (j=0; j<65; j++)
                             if ( mids[j] == notaryid )
                                 break;
+                        if ( j == 65 )
+                            KOMODO_LASTMINED = 0;
                     } else fprintf(stderr,"no nonz pubkeys\n");
-                    if ( (Mining_height >= 235300 && Mining_height < 236000) || (j == 65 && Mining_height > KOMODO_MAYBEMINED+3 && Mining_height > KOMODO_LASTMINED+64) )
+                    if ( (Mining_height >= 235300 && Mining_height < 236000) || (j == 65 && Mining_height > KOMODO_MAYBEMINED+1 && Mining_height > KOMODO_LASTMINED+64) )
                     {
                         hashTarget = arith_uint256().SetCompact(KOMODO_MINDIFF_NBITS);
                         fprintf(stderr,"I am the chosen one for %s ht.%d\n",ASSETCHAINS_SYMBOL,pindexPrev->nHeight+1);
This page took 0.027092 seconds and 4 git commands to generate.