Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
7eca705621
  1. 6
      gecko/gecko_miner.c

6
gecko/gecko_miner.c

@ -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) / virt->chain->estblocktime; gap = (int32_t)(time(NULL) - virt->backstoptime) / (10 * 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 )

Loading…
Cancel
Save