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