From afae290a4257ac398975cd2740e61400c171a51e Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 13 Jul 2017 13:38:29 +0200 Subject: [PATCH] Test --- src/komodo_jumblr.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/komodo_jumblr.h b/src/komodo_jumblr.h index cff1524d3..c5348abf5 100755 --- a/src/komodo_jumblr.h +++ b/src/komodo_jumblr.h @@ -478,6 +478,7 @@ void jumblr_zaddrinit(char *zaddr) { if ( (array= cJSON_Parse(retstr)) != 0 ) { + t_z = z_z = 0; if ( cJSON_GetArraySize(array) == 1 && is_cJSON_Array(array) != 0 ) { item = jitem(array,0); @@ -659,11 +660,13 @@ void jumblr_iteration() { jumblr_opidsupdate(); chosen_one = -1; + printf("Jumblr_numsecretaddrs.%d\n",Jumblr_numsecretaddrs); for (iter=0; iter<2; iter++) { counter = n = 0; HASH_ITER(hh,Jumblrs,ptr,tmp) { + printf("status.%d %c %c %.8f\n",ptr->status,jumblr_addresstype(ptr->src),jumblr_addresstype(ptr->dest),dstr(ptr->amount)); if ( ptr->status > 0 && jumblr_addresstype(ptr->src) == 'z' && jumblr_addresstype(ptr->dest) == 'z' ) { if ( ptr->spent == 0 && (total= jumblr_balance(ptr->dest)) >= (fee + JUMBLR_FEE)*SATOSHIDEN )