Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
080260fb7e
  1. 10
      gecko/gecko_miner.c

10
gecko/gecko_miner.c

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

Loading…
Cancel
Save