From 8feed30263b58e5ae43a2d159a6770fd26e58621 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 1 Dec 2017 15:18:14 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_instantdex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_instantdex.c b/iguana/exchanges/LP_instantdex.c index 2fe8a811c..faef1cbda 100644 --- a/iguana/exchanges/LP_instantdex.c +++ b/iguana/exchanges/LP_instantdex.c @@ -239,9 +239,9 @@ char *LP_instantdex_claim(struct iguana_info *coin,char *depositaddr,uint32_t ex vout1 = jitem(vouts,1); weeksatoshis = LP_value_extract(vout1,0); weeki = (int32_t)(weeksatoshis % 10000); - for (j=-1; j<=1; j++) + for (j=0; j<168; j++) { - expiration = ((weeki+j) * LP_WEEKMULT) + LP_FIRSTWEEKTIME; + expiration = ((weeki * LP_WEEKMULT + j*3600) + LP_FIRSTWEEKTIME); redeemlen = LP_deposit_addr(checkaddr,redeemscript,coin->taddr,coin->p2shtype,expiration,G.LP_pubsecp); if ( strcmp(checkaddr,vinaddr) == 0 ) {