From 9763b00743378783d5311d59cbea75c899218289 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 4 Mar 2017 09:33:27 +0200 Subject: [PATCH] Test --- basilisk/jumblr.c | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/basilisk/jumblr.c b/basilisk/jumblr.c index 4cfd89367..d5b26f1f2 100755 --- a/basilisk/jumblr.c +++ b/basilisk/jumblr.c @@ -136,22 +136,9 @@ char *jumblr_listunspent(struct supernet_info *myinfo,struct iguana_info *coin,c int64_t jumblr_receivedby(struct supernet_info *myinfo,struct iguana_info *coin,char *addr) { - char *retstr; int64_t total = 0; //cJSON *retjson,*item; int32_t i,n; + char *retstr; int64_t total = 0; if ( (retstr= jumblr_getreceivedbyaddress(myinfo,coin,addr)) != 0 ) { - printf("jumblr_getreceivedbyaddress.(%s) -> (%s)\n",addr,retstr); - /*if ( (retjson= cJSON_Parse(retstr)) != 0 ) - { - if ( (n= cJSON_GetArraySize(retjson)) > 0 ) - { - for (i=0; isrc,from,sizeof(ptr->src)); if ( (amounts= jarray(&n,params,"amounts")) != 0 ) @@ -207,6 +197,7 @@ void jumblr_itemset(struct jumblr_item *ptr,cJSON *item,char *status) for (i=0; i 0 ) { if ( strcmp(addr,JUMBLR_ADDR) == 0 ) @@ -246,6 +237,7 @@ void jumblr_opidsupdate(struct supernet_info *myinfo,struct iguana_info *coin) char *retstr; cJSON *array; int32_t i,n; struct jumblr_item *ptr; if ( (retstr= jumblr_zlistoperationids(myinfo,coin)) != 0 ) { + printf("%s\n",retstr); if ( (array= cJSON_Parse(retstr)) != 0 ) { if ( (n= cJSON_GetArraySize(array)) > 0 )