Reduce staking CPU usage
This commit is contained in:
@@ -949,7 +949,11 @@ void static BitcoinMiner()
|
|||||||
fprintf(stderr,"%02x",((uint8_t *)&HASHTarget_POW)[z]);
|
fprintf(stderr,"%02x",((uint8_t *)&HASHTarget_POW)[z]);
|
||||||
fprintf(stderr," POW\n");*/
|
fprintf(stderr," POW\n");*/
|
||||||
if ( h > hashTarget )
|
if ( h > hashTarget )
|
||||||
|
{
|
||||||
|
if ( ASSETCHAINS_STAKED != 0 && GetArg("-genproclimit", 0) == 0 )
|
||||||
|
sleep(1);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
if ( IS_KOMODO_NOTARY != 0 && B.nTime > GetAdjustedTime() )
|
if ( IS_KOMODO_NOTARY != 0 && B.nTime > GetAdjustedTime() )
|
||||||
{
|
{
|
||||||
//fprintf(stderr,"need to wait %d seconds to submit block\n",(int32_t)(B.nTime - GetAdjustedTime()));
|
//fprintf(stderr,"need to wait %d seconds to submit block\n",(int32_t)(B.nTime - GetAdjustedTime()));
|
||||||
|
|||||||
Reference in New Issue
Block a user