From 97f243b66679b7ad64c18680559a87d42d282e8d Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 26 Jun 2016 07:58:51 -0300 Subject: [PATCH] test --- basilisk/basilisk.c | 2 +- gecko/gecko_miner.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index c0538d878..aef368b42 100755 --- a/basilisk/basilisk.c +++ b/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); } diff --git a/gecko/gecko_miner.c b/gecko/gecko_miner.c index c5f586719..171e087f0 100755 --- a/gecko/gecko_miner.c +++ b/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 )