From 7029e3b589f2c5575b036b71a00c3eea902fcf2e Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 21 Sep 2016 15:25:15 -0300 Subject: [PATCH] test --- basilisk/basilisk_DEX.c | 4 ++-- basilisk/basilisk_MSG.c | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/basilisk/basilisk_DEX.c b/basilisk/basilisk_DEX.c index 9b702abcb..53da4c9fc 100755 --- a/basilisk/basilisk_DEX.c +++ b/basilisk/basilisk_DEX.c @@ -420,7 +420,7 @@ STRING_ARG(InstantDEX,available,source) { if ( (unspents= iguana_listunspents(myinfo,coin,0,0,0,remoteaddr)) != 0 ) { - printf("available.(%s)\n",jprint(unspents,0)); + //printf("available.(%s)\n",jprint(unspents,0)); if ( (n= cJSON_GetArraySize(unspents)) > 0 ) { for (i=0; i %.8f\n",jprint(item,0),dstr(total)); + //printf("(%s) -> %.8f\n",jprint(item,0),dstr(total)); } } free_json(unspents); diff --git a/basilisk/basilisk_MSG.c b/basilisk/basilisk_MSG.c index 3e3907c26..0211f9509 100755 --- a/basilisk/basilisk_MSG.c +++ b/basilisk/basilisk_MSG.c @@ -159,6 +159,9 @@ char *basilisk_iterate_MSG(struct supernet_info *myinfo,uint32_t channel,uint32_ for (i=0; i 0 ) @@ -168,12 +171,18 @@ char *basilisk_iterate_MSG(struct supernet_info *myinfo,uint32_t channel,uint32_ keylen = basilisk_messagekey(key,channel,msgid,zero,desthash); if ( (item= basilisk_respond_getmessage(myinfo,key,keylen)) != 0 ) jaddi(array,item);//, printf("gotmsg1.(%s)\n",jprint(item,0)); + keylen = basilisk_messagekey(key,channel,msgid,desthash,zero); + if ( (item= basilisk_respond_getmessage(myinfo,key,keylen)) != 0 ) + jaddi(array,item);//, printf("gotmsg1.(%s)\n",jprint(item,0)); } if ( bits256_nonz(desthash) != 0 ) { keylen = basilisk_messagekey(key,channel,msgid,srchash,zero); if ( (item= basilisk_respond_getmessage(myinfo,key,keylen)) != 0 ) jaddi(array,item);//, printf("gotmsg2.(%s)\n",jprint(item,0)); + keylen = basilisk_messagekey(key,channel,msgid,zero,srchash); + if ( (item= basilisk_respond_getmessage(myinfo,key,keylen)) != 0 ) + jaddi(array,item);//, printf("gotmsg2.(%s)\n",jprint(item,0)); } if ( bits256_nonz(srchash) != 0 && bits256_nonz(desthash) != 0 ) {