From 22c8bcd5d18ce271dfba02d306e5c612ebe814c1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 21 Sep 2016 14:49:59 -0300 Subject: [PATCH] test --- basilisk/basilisk.c | 4 ++-- iguana/iguana_init.c | 2 +- iguana/iguana_volatiles.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 483d8e069..fe63fb3c0 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -324,7 +324,7 @@ void basilisk_sendback(struct supernet_info *myinfo,char *origCMD,char *symbol,c jaddbits256(valsobj,"chaintip",virt->blocks.hwmchain.RO.hash2); } data = basilisk_jsondata(sizeof(struct iguana_msghdr),&allocptr,space,sizeof(space),&datalen,symbol,valsobj,basilisktag); - printf("sendback.%d -> %s\n",datalen,remoteaddr); + //printf("sendback.%d -> %s\n",datalen,remoteaddr); basilisk_sendcmd(myinfo,remoteaddr,"RET",&basilisktag,encryptflag,delaymillis,data,datalen,0,0); if ( allocptr != 0 ) free(allocptr); @@ -750,7 +750,7 @@ void basilisk_msgprocess(struct supernet_info *myinfo,void *_addr,uint32_t sende { if ( (retstr= (*basilisk_services[i][1])(myinfo,type,addr,remoteaddr,basilisktag,valsobj,data,datalen,hash,from_basilisk)) != 0 ) { - printf("from_basilisk.%d ret.(%s)\n",from_basilisk,retstr); + //printf("from_basilisk.%d ret.(%s)\n",from_basilisk,retstr); //if ( from_basilisk != 0 || strcmp(CMD,"GET") == 0 ) basilisk_sendback(myinfo,CMD,symbol,remoteaddr,basilisktag,retstr); if ( retstr != 0 ) diff --git a/iguana/iguana_init.c b/iguana/iguana_init.c index 52e152492..28aa3e38f 100755 --- a/iguana/iguana_init.c +++ b/iguana/iguana_init.c @@ -377,7 +377,7 @@ void iguana_parseline(struct supernet_info *myinfo,struct iguana_info *coin,int3 { if ( iguana_bundleinitmap(myinfo,coin,bp,height,hash2,hash1) == 0 ) lastbundle = hash2, lastheight = height; - else if ( 0 && missing++ > coin->MAXBUNDLES && strcmp("BTCD",coin->symbol) != 0 ) + else if ( missing++ > coin->MAXBUNDLES && strcmp("BTCD",coin->symbol) != 0 ) { printf("missing.%d\n",missing); break; diff --git a/iguana/iguana_volatiles.c b/iguana/iguana_volatiles.c index a284c68b2..371b07600 100755 --- a/iguana/iguana_volatiles.c +++ b/iguana/iguana_volatiles.c @@ -426,7 +426,7 @@ int32_t iguana_volatilesmap(struct supernet_info *myinfo,struct iguana_info *coi iguana_bundleload(myinfo,coin,ramchain,coin->bundles[ramchain->height/coin->chain->bundlesize],1); if ( (rdata= ramchain->H.data) == 0 ) { - printf("volatilesmap.[%d] no rdata\n",ramchain->height/coin->chain->bundlesize); + //printf("volatilesmap.[%d] no rdata\n",ramchain->height/coin->chain->bundlesize); return(-1); } }