Test
This commit is contained in:
@@ -1199,14 +1199,14 @@ void static BitcoinMiner_noeq()
|
|||||||
miningTimer.start();
|
miningTimer.start();
|
||||||
|
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
CBlockTemplate *ptr = CreateNewBlockWithKey(reservekey, Mining_height, 0);
|
CBlockTemplate *ptr = CreateNewBlockWithKey(reservekey, Mining_height, ASSETCHAINS_STAKED != 0 && KOMODO_MININGTHREADS == 0);
|
||||||
#else
|
#else
|
||||||
CBlockTemplate *ptr = CreateNewBlockWithKey();
|
CBlockTemplate *ptr = CreateNewBlockWithKey();
|
||||||
#endif
|
#endif
|
||||||
if ( ptr == 0 )
|
if ( ptr == 0 )
|
||||||
{
|
{
|
||||||
static uint32_t counter;
|
static uint32_t counter;
|
||||||
if ( counter++ < 100 )
|
if ( counter++ < 10 )
|
||||||
fprintf(stderr,"created illegal block, retry\n");
|
fprintf(stderr,"created illegal block, retry\n");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -1501,7 +1501,7 @@ void static BitcoinMiner()
|
|||||||
if ( ptr == 0 )
|
if ( ptr == 0 )
|
||||||
{
|
{
|
||||||
static uint32_t counter;
|
static uint32_t counter;
|
||||||
if ( counter++ < 100 && ASSETCHAINS_STAKED == 0 )
|
if ( counter++ < 10 && ASSETCHAINS_STAKED == 0 )
|
||||||
fprintf(stderr,"created illegal blockB, retry\n");
|
fprintf(stderr,"created illegal blockB, retry\n");
|
||||||
sleep(1);
|
sleep(1);
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user