From b7b919216d0d953d7af12de9d6dd1f67f605c998 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 10 Dec 2017 09:18:58 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_instantdex.c | 2 +- iguana/exchanges/LP_nativeDEX.c | 1 - iguana/exchanges/LP_remember.c | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_instantdex.c b/iguana/exchanges/LP_instantdex.c index 4d8002491..dae35bfb6 100644 --- a/iguana/exchanges/LP_instantdex.c +++ b/iguana/exchanges/LP_instantdex.c @@ -132,7 +132,7 @@ void LP_instantdex_depositadd(char *coinaddr,bits256 txid) for (i=0; i 0 ) { LP_instantdex_deposituniq(fp,prevtxid); diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index b3fe04ddf..4fc1bacd4 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -18,7 +18,6 @@ // marketmaker // // ordermatch pricing error -// signals -> autoprice // https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki for signing BCH/BTG // compress packets // portfolio to set prices from historical diff --git a/iguana/exchanges/LP_remember.c b/iguana/exchanges/LP_remember.c index f8aac6b49..24a04a6bf 100644 --- a/iguana/exchanges/LP_remember.c +++ b/iguana/exchanges/LP_remember.c @@ -923,6 +923,8 @@ 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 ) + printf("this isnt my swap! alice.(%s vs %s)\n",alice->smartaddr,rswap.Adestaddr); } if ( (bob= LP_coinfind(rswap.bobcoin)) != 0 ) { @@ -938,6 +940,8 @@ 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 ) + printf("this isnt my swap! bob.(%s vs %s)\n",bob->smartaddr,rswap.destaddr); } if ( (alice= LP_coinfind(rswap.alicecoin)) != 0 ) {