|
@ -335,9 +335,9 @@ void gecko_miner(struct supernet_info *myinfo,struct iguana_info *btcd,struct ig |
|
|
return; |
|
|
return; |
|
|
if ( (virt->blocks.hwmchain.height % myinfo->numrelays) != myinfo->RELAYID ) |
|
|
if ( (virt->blocks.hwmchain.height % myinfo->numrelays) != myinfo->RELAYID ) |
|
|
{ |
|
|
{ |
|
|
//if ( myinfo->numrelays < 3 )
|
|
|
if ( myinfo->numrelays < 3 ) |
|
|
// return;
|
|
|
return; |
|
|
gap = (int32_t)(time(NULL) - virt->backstoptime) / (10 * virt->chain->estblocktime); |
|
|
gap = (int32_t)(time(NULL) - virt->backstoptime) / virt->chain->estblocktime; |
|
|
for (i=0; i<gap; i++) |
|
|
for (i=0; i<gap; i++) |
|
|
{ |
|
|
{ |
|
|
if ( ((virt->blocks.hwmchain.height+i) % myinfo->numrelays) == myinfo->RELAYID ) |
|
|
if ( ((virt->blocks.hwmchain.height+i) % myinfo->numrelays) == myinfo->RELAYID ) |
|
@ -374,8 +374,8 @@ void gecko_miner(struct supernet_info *myinfo,struct iguana_info *btcd,struct ig |
|
|
free(blockstr); |
|
|
free(blockstr); |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
//virt->newblockstr = blockstr;
|
|
|
virt->newblockstr = blockstr; |
|
|
//virt->newblock = newblock;
|
|
|
virt->newblock = newblock; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if ( txptrs != (void *)space ) |
|
|
if ( txptrs != (void *)space ) |
|
|