From 96e5fd5850a98bbed1ce7d15b024d0c818aaeef9 Mon Sep 17 00:00:00 2001
From: jl777 <jameslee777@yahoo.com>
Date: Mon, 26 Feb 2018 19:07:12 +0200
Subject: [PATCH] Test

---
 iguana/exchanges/LP_instantdex.c | 2 +-
 iguana/exchanges/LP_rpc.c        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/iguana/exchanges/LP_instantdex.c b/iguana/exchanges/LP_instantdex.c
index 02c584080..34560238a 100644
--- a/iguana/exchanges/LP_instantdex.c
+++ b/iguana/exchanges/LP_instantdex.c
@@ -335,7 +335,7 @@ char *LP_unlockedspend(void *ctx,char *symbol,bits256 utxotxid)
                             jaddnum(retjson,"expiration",expiration);
                             claimtime = LP_claimtime(coin,expiration);
                             jaddnum(retjson,"claimtime",claimtime);
-                            if ( claimtime != 0 && strcmp(destaddr,coin->smartaddr) == 0 && time(NULL) > expiration )
+                            if ( claimtime > expiration && strcmp(destaddr,coin->smartaddr) == 0 )
                             {
                                 char str[65]; printf("LP_timespend satoshis %.8f %s/v%d\n",dstr(satoshis - coin->txfee),bits256_str(str,utxotxid),utxovout);
                                 if ( (signedtx= basilisk_swap_bobtxspend(&signedtxid,coin->txfee,"timespend",coin->symbol,coin->wiftaddr,coin->taddr,coin->pubtype,coin->p2shtype,coin->isPoS,coin->wiftype,ctx,G.LP_privkey,0,redeemscript+2,redeemlen-2,0,0,utxotxid,utxovout,coin->smartaddr,G.LP_pubsecp,0,claimtime,&destamount,0,0,vinaddr,0,coin->zcash)) != 0 )
diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c
index b8e20e017..a91a1d6ed 100644
--- a/iguana/exchanges/LP_rpc.c
+++ b/iguana/exchanges/LP_rpc.c
@@ -928,7 +928,7 @@ uint32_t LP_heighttime(char *symbol,int32_t height)
             {
                 if ( (retjson= cJSON_Parse(blockhashstr)) != 0 )
                 {
-                    //printf("height.(%s)\n",jprint(retjson,0));
+                    printf("height.(%s)\n",jprint(retjson,0));
                     timestamp = juint(retjson,"time");
                     free_json(retjson);
                 }