From 9087e1e73b11709bc6fb58c6abdfeff68416eff4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 24 Aug 2017 14:45:20 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_scan.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/iguana/exchanges/LP_scan.c b/iguana/exchanges/LP_scan.c index 67e1042c3..9bd5a034d 100644 --- a/iguana/exchanges/LP_scan.c +++ b/iguana/exchanges/LP_scan.c @@ -283,9 +283,19 @@ cJSON *LP_snapshot(struct iguana_info *coin,int32_t height) { if ( (ht= LP_scanblockchain(coin,startht,endht)) < endht ) { + if ( ht > maxsnapht ) + { + maxsnapht = ht; + printf("maxsnapht.%d for %s\n",maxsnapht,coin->symbol); + } sleep(10); if ( (ht= LP_scanblockchain(coin,startht,endht)) < endht ) { + if ( ht > maxsnapht ) + { + maxsnapht = ht; + printf("maxsnapht.%d for %s\n",maxsnapht,coin->symbol); + } jaddstr(retjson,"error","blockchain scan error"); return(retjson); }