From 02a440e6938f7ff72586a3a6a117504122ea0fb4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 12 Jan 2018 17:13:01 +0700 Subject: [PATCH] Test --- iguana/exchanges/LP_include.h | 4 ++++ iguana/exchanges/LP_remember.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_include.h b/iguana/exchanges/LP_include.h index 390e473ae..97e9d39ed 100644 --- a/iguana/exchanges/LP_include.h +++ b/iguana/exchanges/LP_include.h @@ -21,6 +21,10 @@ #ifndef LP_INCLUDE_H #define LP_INCLUDE_H +#ifndef LP_TECHSUPPORT +#define LP_TECHSUPPORT 1 +#endif + #ifdef FROMGUI #define printf dontprintf diff --git a/iguana/exchanges/LP_remember.c b/iguana/exchanges/LP_remember.c index e44251c24..6f845d972 100644 --- a/iguana/exchanges/LP_remember.c +++ b/iguana/exchanges/LP_remember.c @@ -923,7 +923,7 @@ cJSON *basilisk_remember(int64_t *KMDtotals,int64_t *BTCtotals,uint32_t requesti bitcoin_address(otheraddr,alice->taddr,alice->pubtype,rswap.other33,33); destBdest = otheraddr; destAdest = rswap.Adestaddr; - if ( strcmp(alice->smartaddr,rswap.Adestaddr) != 0 ) + if ( LP_TECHSUPPORT == 0 && strcmp(alice->smartaddr,rswap.Adestaddr) != 0 ) { printf("this isnt my swap! alice.(%s vs %s)\n",alice->smartaddr,rswap.Adestaddr); cJSON *retjson = cJSON_CreateObject(); @@ -947,7 +947,7 @@ cJSON *basilisk_remember(int64_t *KMDtotals,int64_t *BTCtotals,uint32_t requesti bitcoin_address(otheraddr,bob->taddr,bob->pubtype,rswap.other33,33); srcAdest = otheraddr; srcBdest = rswap.destaddr; - if ( strcmp(bob->smartaddr,rswap.destaddr) != 0 ) + if ( LP_TECHSUPPORT == 0 && strcmp(bob->smartaddr,rswap.destaddr) != 0 ) { printf("this isnt my swap! bob.(%s vs %s)\n",bob->smartaddr,rswap.destaddr); cJSON *retjson = cJSON_CreateObject();