From 876ea280cdb7506e363a679c6b2695f939ac9bb8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 9 Jul 2017 21:53:40 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index fe11b13c1..180138972 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -254,7 +254,9 @@ char *LP_process_message(void *ctx,char *typestr,char *myipaddr,int32_t pubsock, void LP_utxo_spentcheck(int32_t pubsock,struct LP_utxoinfo *utxo) { - struct _LP_utxoinfo u; char str[65]; uint32_t now = (uint32_t)time(NULL); + struct _LP_utxoinfo u; struct iguana_info *coin; char str[65]; uint32_t now = (uint32_t)time(NULL); + if ( IAMLP != 0 && (coin= LP_coinfind(utxo->coin)) != 0 && coin->inactive != 0 ) + return; //printf("%s lag.%d\n",bits256_str(str,utxo->txid),now-utxo->lastspentcheck); if ( utxo->T.spentflag == 0 && now > utxo->T.lastspentcheck+60 ) {