This commit is contained in:
jl777
2016-11-08 19:20:50 -03:00
parent d90d2be52c
commit d90cef0b0c

View File

@@ -718,7 +718,8 @@ void static BitcoinMiner(CWallet *pwallet)
{
if ( ASSETCHAINS_SYMBOL[0] == 0 || Mining_height < 100 )
printf("no nodes, break\n");
break;
if ( ASSETCHAINS_SYMBOL[0] != 0 && Mining_height >= 100 )
break;
}
if ((UintToArith256(pblock->nNonce) & 0xffff) == 0xffff)
{
@@ -728,14 +729,14 @@ void static BitcoinMiner(CWallet *pwallet)
}
if (mempool.GetTransactionsUpdated() != nTransactionsUpdatedLast && GetTime() - nStart > 60)
{
if ( ASSETCHAINS_SYMBOL[0] != 0 )
printf("timeout, break\n");
//if ( ASSETCHAINS_SYMBOL[0] != 0 )
// printf("timeout, break\n");
break;
}
if ( pindexPrev != chainActive.Tip() )
{
if ( ASSETCHAINS_SYMBOL[0] != 0 )
printf("Tip advanced, break\n");
//if ( ASSETCHAINS_SYMBOL[0] != 0 )
// printf("Tip advanced, break\n");
break;
}
// Update nNonce and nTime