From 49c92bebaa8869b843a421f24328521cfe5b97bd Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 21 Sep 2016 18:54:19 -0300 Subject: [PATCH] test --- basilisk/basilisk.c | 5 +++-- basilisk/basilisk_MSG.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 15e12839f..a842d0932 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -795,10 +795,11 @@ void basilisk_p2p(void *_myinfo,void *_addr,char *senderip,uint8_t *data,int32_t len += iguana_rwnum(0,data,sizeof(basilisktag),&basilisktag); //int32_t i; for (i=0; iNOTARY.RELAYID >= 0 ) + if ( myinfo->IAMLP == 0 ) printf("RELAYID.%d ->received.%d basilisk_p2p.(%s) from %s tag.%u\n",myinfo->NOTARY.RELAYID,datalen,type,senderip!=0?senderip:"?",basilisktag); basilisk_msgprocess(myinfo,_addr,ipbits,type,basilisktag,&data[len],datalen - len); - printf("processed.%s from %s\n",type,senderip!=0?senderip:"?"); + if ( myinfo->IAMLP == 0 ) + printf("processed.%s from %s\n",type,senderip!=0?senderip:"?"); } if ( ptr != 0 ) free(ptr); diff --git a/basilisk/basilisk_MSG.c b/basilisk/basilisk_MSG.c index 823100898..4d54c8648 100755 --- a/basilisk/basilisk_MSG.c +++ b/basilisk/basilisk_MSG.c @@ -149,7 +149,7 @@ int32_t basilisk_msgcmp(struct basilisk_message *msg,int32_t width,uint32_t chan char *basilisk_iterate_MSG(struct supernet_info *myinfo,uint32_t channel,uint32_t msgid,bits256 srchash,bits256 desthash,int32_t origwidth) { - struct basilisk_message *msg,*tmpmsg; uint8_t key[BASILISK_KEYSIZE]; int32_t allflag,i,keylen,width; cJSON *item,*retjson,*array; bits256 zero; + uint8_t key[BASILISK_KEYSIZE]; int32_t allflag,i,keylen,width; cJSON *item,*retjson,*array; bits256 zero; //struct basilisk_message *msg,*tmpmsg; memset(zero.bytes,0,sizeof(zero)); if ( (width= origwidth) > 3600 ) width = 3600;