From d2d842e5fe5848ec34b4cc6d866b08d7855110e4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 28 Nov 2017 18:46:35 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_ordermatch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index 52716db30..5fd7137c6 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -712,12 +712,14 @@ int32_t LP_validSPV(char *symbol,char *coinaddr,bits256 txid,int32_t vout) } if ( (up= LP_address_utxofind(coin,coinaddr,txid,vout)) != 0 ) { + if ( up->SPV > 0 ) + return(0); if ( up->SPV < 0 ) return(-1); if ( (backupep= ep->prev) == 0 ) backupep = ep; up->SPV = LP_merkleproof(coin,coinaddr,backupep,up->U.txid,up->U.height); - if ( up->SPV <= 0 ) + if ( up->SPV < 0 ) return(-1); } }