From b5eefcfafb2c2166f0f07834c0fad5ca2aa1ca9b Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 15 Sep 2017 11:00:59 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_scan.c | 2 +- iguana/exchanges/LP_utxos.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_scan.c b/iguana/exchanges/LP_scan.c index b48d17b09..c791f2ae1 100644 --- a/iguana/exchanges/LP_scan.c +++ b/iguana/exchanges/LP_scan.c @@ -609,7 +609,7 @@ uint64_t LP_txvalue(char *coinaddr,char *symbol,bits256 txid,int32_t vout) return(tx->outpoints[vout].value + tx->outpoints[vout].interest); } } else printf("LP_txvalue vout.%d >= tx->numvouts.%d\n",vout,tx->numvouts); - } else printf("LP_txvalue couldnt find tx %s\n",bits256_str(str,txid)); + } else printf("LP_txvalue couldnt find %s tx %s\n",coin->symbol,bits256_str(str,txid)); return(0); } diff --git a/iguana/exchanges/LP_utxos.c b/iguana/exchanges/LP_utxos.c index 33aaca9bb..ecdbb9bf8 100644 --- a/iguana/exchanges/LP_utxos.c +++ b/iguana/exchanges/LP_utxos.c @@ -806,7 +806,7 @@ cJSON *LP_inventory(char *symbol,int32_t iambob) LP_utxo_clientpublish(utxo); jaddi(array,LP_inventoryjson(cJSON_CreateObject(),utxo)); } - else if ( LP_ismine(utxo) > 0 ) + else if ( LP_ismine(utxo) > 0 && strcmp(symbol,utxo->coin) == 0 ) printf("skip %s %s %d %d %d %d\n",utxo->coin,bits256_str(str,utxo->payment.txid),LP_isunspent(utxo) != 0,strcmp(symbol,utxo->coin) == 0,utxo->iambob == iambob,LP_ismine(utxo) > 0); } return(array);