Prevent PoW check during premising

This commit is contained in:
jl777
2018-04-16 05:43:21 +03:00
parent 321a414050
commit d608d49460
3 changed files with 8 additions and 13 deletions

View File

@@ -1002,12 +1002,12 @@ void static BitcoinMiner()
// Changing pblock->nTime can change work required on testnet:
hashTarget.SetCompact(pblock->nBits);
}
/*CValidationState tmpstate;
if ( !TestBlockValidity(tmpstate, *pblock, pindexPrev, false, false))
CValidationState tmpstate;
if ( !TestBlockValidity(tmpstate, *pblock, pindexPrev, true, false))
{
fprintf(stderr,"formerly valid mining block became invalid, likely due to tx expiration\n");
break;
}*/
}
}
}
}