Browse Source

test

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

2
basilisk/basilisk.c

@ -711,7 +711,7 @@ void basilisks_loop(void *arg)
basilisk_msgprocess(myinfo,0,0,"PIN",0,&data[sizeof(struct iguana_msghdr)],datalen);
else if ( (addr= iguana_peerfindipbits(btcd,rp->ipbits,1)) != 0 && addr->usock >= 0 )
{
if ( iguana_queue_send(addr,0,&data[sizeof(struct iguana_msghdr)],"SuperNETPIN",datalen) != datalen )
if ( iguana_queue_send(addr,0,&data[sizeof(struct iguana_msghdr)],"SuperNETPIN",datalen) <= 0 )
printf("error sending %d to (%s)\n",datalen,addr->ipaddr);
else printf("sent %d to (%s)\n",datalen,addr->ipaddr);
}

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