From 443f07f60a1e9acf4336d79afe39fcbf13ec963c Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 1 Jul 2017 13:50:31 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_coins.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_coins.c b/iguana/exchanges/LP_coins.c index 9f5ed375e..f727c99f3 100644 --- a/iguana/exchanges/LP_coins.c +++ b/iguana/exchanges/LP_coins.c @@ -261,8 +261,13 @@ struct iguana_info *LP_coinfind(char *symbol) else return(0); if ( LP_coininit(&cdata,symbol,name,assetname,isPoS,port,pubtype,p2shtype,wiftype,txfee,estimatedrate,longestchain,0) > 0 ) { - if ( (coin= LP_coinadd(&cdata)) != 0 && strcmp(symbol,"KMD") == 0 ) - coin->inactive = 0; + if ( (coin= LP_coinadd(&cdata)) != 0 ) + { + if ( strcmp(symbol,"KMD") == 0 ) + coin->inactive = 0; + else if ( strcmp(symbol,"BTC") == 0 ) + coin->inactive = !IAMLP * (uint32_t)time(NULL); + } } else coin->inactive = (uint32_t)time(NULL); return(coin); }