From fdc0e4dfdf532e3f1cea6899c07e9f89e1d8ea20 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 31 May 2018 01:11:34 -1100 Subject: [PATCH] Fix --- iguana/exchanges/LP_scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_scan.c b/iguana/exchanges/LP_scan.c index 336a26b40..47b032fc2 100644 --- a/iguana/exchanges/LP_scan.c +++ b/iguana/exchanges/LP_scan.c @@ -23,7 +23,7 @@ int32_t LP_blockinit(struct iguana_info *coin,int32_t height) { int32_t i,iter,numtx,checkht=-1; cJSON *blockobj,*txs,*txobj; bits256 txid; struct LP_transaction *tx; portable_mutex_lock(&LP_blockinit_mutex); - if ( (blockobj= LP_blockjson(&checkht,coin->symbol,0,height)) != 0 && checkht == height ) + if ( (blockobj= LP_blockjson(&checkht,coin->symbol,0,height)) != 0 && (checkht == 0 || checkht == height) ) { if ( (txs= jarray(&numtx,blockobj,"tx")) != 0 ) {