From fa0ba6f0b9ad9cb8980e8d977277d29724044bc6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 7 Apr 2017 21:15:33 +0300 Subject: [PATCH] Test --- .gitignore | 2 ++ basilisk/jumblr.c | 1 + crypto777/iguana_utils.c | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9a74236cc..b5c31dd26 100755 --- a/.gitignore +++ b/.gitignore @@ -266,3 +266,5 @@ iguana/DB/SWAPS/845549832-3630913950 iguana/DB/SWAPS/2050938501-203733478 iguana/DB/SWAPS/3434672913-3981690962 + +iguana/DB/SWAPS/2840127595-1174059534 diff --git a/basilisk/jumblr.c b/basilisk/jumblr.c index 6a4a2208d..90c4d5efc 100755 --- a/basilisk/jumblr.c +++ b/basilisk/jumblr.c @@ -199,6 +199,7 @@ int64_t jumblr_balance(struct supernet_info *myinfo,struct iguana_info *coin,cha { if ( (retstr= jumblr_listunspent(myinfo,coin,addr)) != 0 ) { + printf("jumblr.(%s)\n",retstr); if ( (retjson= cJSON_Parse(retstr)) != 0 ) { if ( (n= cJSON_GetArraySize(retjson)) > 0 ) diff --git a/crypto777/iguana_utils.c b/crypto777/iguana_utils.c index 115e90a98..9f41cf2ce 100755 --- a/crypto777/iguana_utils.c +++ b/crypto777/iguana_utils.c @@ -1279,7 +1279,7 @@ double get_theoretical(double *avebidp,double *aveaskp,double *highbidp,double * weighted = weighted_orderbook(avebidp,aveaskp,highbidp,lowaskp,bittrex_orderbook(base,rel,25),1./(*CMC_averagep)); if ( *CMC_averagep > SMALLVAL && weighted > SMALLVAL ) theoretical = calc_theoretical(weighted,*CMC_averagep,changes); - if ( counter++ < 100 ) + if ( 0 && counter++ < 100 ) printf("HBLA.[%.8f %.8f] AVE.[%.8f %.8f] (%s) CMC %f %f %f %f\n",*highbidp,*lowaskp,*avebidp,*aveaskp,jprint(item,0),*CMC_averagep,changes[0],changes[1],changes[2]); free_json(cmcjson); }