Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
6d61614b25
  1. 2
      gecko/gecko.c
  2. 6
      gecko/gecko_miner.c

2
gecko/gecko.c

@ -47,7 +47,7 @@ void gecko_iteration(struct supernet_info *myinfo,struct iguana_info *btcd,struc
char mineraddr[64]; int32_t hwmhdrsi,longesthdrsi;
hwmhdrsi = virt->blocks.hwmchain.height / virt->chain->bundlesize;
longesthdrsi = virt->longestchain / virt->chain->bundlesize;
if ( hwmhdrsi <= longesthdrsi )//&& virt->blocks.hwmchain.height < virt->longestchain-1 )
if ( 0 && hwmhdrsi <= longesthdrsi )//&& virt->blocks.hwmchain.height < virt->longestchain-1 )
{
if ( time(NULL) > virt->hdrstime+3 )
{

6
gecko/gecko_miner.c

@ -378,9 +378,9 @@ void gecko_miner(struct supernet_info *myinfo,struct iguana_info *btcd,struct ig
free(blockstr);
else
{
//virt->newblockstr = blockstr;
//virt->newblock = newblock;
free(blockstr);
virt->newblockstr = blockstr;
virt->newblock = newblock;
//free(blockstr);
}
} else printf("didnt find %s.block\n",virt->symbol);
if ( txptrs != (void *)space )

Loading…
Cancel
Save