From f20efd48adae1aa1a28b660cd9f6b0b247707471 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 11 Nov 2017 00:16:27 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_cache.c | 2 ++ iguana/exchanges/LP_nativeDEX.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_cache.c b/iguana/exchanges/LP_cache.c index 81f2592ec..5230bc9cd 100644 --- a/iguana/exchanges/LP_cache.c +++ b/iguana/exchanges/LP_cache.c @@ -225,6 +225,8 @@ bits256 LP_merkleroot(struct iguana_info *coin,struct electrum_info *ep,int32_t int32_t LP_merkleproof(struct iguana_info *coin,struct electrum_info *ep,bits256 txid,int32_t height) { struct LP_transaction *tx=0; cJSON *merkobj,*merkles,*retjson; bits256 roothash,merkleroot; int32_t m,SPV = 0; + if ( height < 0 ) + return(0); if ( (tx= LP_transactionfind(coin,txid)) == 0) { if ( (retjson= electrum_transaction(coin->symbol,ep,&retjson,txid)) != 0 ) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 8af912800..36e98a96a 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -531,7 +531,7 @@ void LP_coinsloop(void *_coins) if ( (tx= LP_transactionfind(coin,up->U.txid)) != 0 && tx->SPV == 0 ) { tx->SPV = up->SPV; - printf("%s %s: SPV.%d\n",coin->symbol,bits256_str(str,up->U.txid),up->SPV); + //printf("%s %s: SPV.%d\n",coin->symbol,bits256_str(str,up->U.txid),up->SPV); } } }