@@ -2282,7 +2282,6 @@ unsigned int static BorisRidiculouslyNamedDifficultyFunction(const CBlockIndex*
22822282
22832283unsigned int static GetNextWorkRequired (const CBlockIndex* pindexLast, const CBlockHeader *pblock)
22842284{
2285-
22862285 if (pindexLast == NULL )
22872286 {
22882287 return bnProofOfWorkLimit.GetCompact ();
@@ -6257,13 +6256,13 @@ void static ScryptMiner(CWallet *pwallet)
62576256 loop
62586257 {
62596258 if ( !fTestNet && pindexPrev->nHeight + 1 >= 500 ){
6260- LYRA2 (BEGIN (thash), 32 , BEGIN (pblock->nVersion ), 80 , BEGIN (pblock->nVersion ), 80 , 2 , 32768 , 256 );
6261- printf (" thash: %s\n " , thash.ToString ().c_str ());
6262- printf (" hashTarget: %s\n " , hashTarget.ToString ().c_str ());
6259+ LYRA2 (BEGIN (thash), 32 , BEGIN (pblock->nVersion ), 80 , BEGIN (pblock->nVersion ), 80 , 2 , pindexPrev-> nHeight + 1 , 256 );
6260+ // printf("thash: %s\n", thash.ToString().c_str());
6261+ // printf("hashTarget: %s\n", hashTarget.ToString().c_str());
62636262 }else if (fTestNet && pindexPrev->nHeight + 1 >= 138 ){
6264- LYRA2 (BEGIN (thash), 32 , BEGIN (pblock->nVersion ), 80 , BEGIN (pblock->nVersion ), 80 , 2 , 32768 , 256 );
6265- printf (" thash: %s\n " , thash.ToString ().c_str ());
6266- printf (" hashTarget: %s\n " , hashTarget.ToString ().c_str ());
6263+ LYRA2 (BEGIN (thash), 32 , BEGIN (pblock->nVersion ), 80 , BEGIN (pblock->nVersion ), 80 , 2 , pindexPrev-> nHeight + 1 , 256 );
6264+ // printf("thash: %s\n", thash.ToString().c_str());
6265+ // printf("hashTarget: %s\n", hashTarget.ToString().c_str());
62676266 }else {
62686267 scrypt_N_1_1_256_sp_generic (BEGIN (pblock->nVersion ), BEGIN (thash), scratchpad, GetNfactor (pblock->nTime ));
62696268 }
0 commit comments