From df63c672096f6d84d2c944ce842acf6d7fa56161 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 18 Jun 2017 12:34:49 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_rpc.c | 5 +++++ iguana/exchanges/LP_utxos.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 09534dc89..cab431136 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -84,6 +84,11 @@ char *issue_LP_notifyutxo(char *destip,uint16_t destport,struct LP_utxoinfo *utx free(retstr); return(0); } + if ( utxo->iambob == 0 ) + { + printf("issue_LP_notifyutxo trying to send Alice %s/v%d\n",bits256_str(str,utxo->payment.txid),utxo->payment.vout); + return(0); + } u = (utxo->iambob != 0) ? utxo->deposit : utxo->fee; if ( LP_iseligible(&val,&val2,utxo->iambob,utxo->coin,utxo->payment.txid,utxo->payment.vout,utxo->S.satoshis,u.txid,u.vout,utxo->pubkey) > 0 ) { diff --git a/iguana/exchanges/LP_utxos.c b/iguana/exchanges/LP_utxos.c index cc8e71922..4339493a6 100644 --- a/iguana/exchanges/LP_utxos.c +++ b/iguana/exchanges/LP_utxos.c @@ -267,11 +267,6 @@ int32_t LP_iseligible(uint64_t *valp,uint64_t *val2p,int32_t iambob,char *symbol { uint64_t val,val2=0,threshold; char destaddr[64],destaddr2[64]; destaddr[0] = destaddr2[0] = 0; - if ( iambob == 0 && bits256_cmp(pubkey,LP_mypubkey) != 0 ) - { - char str[65]; printf("external Alice utxo.(%s) rejected\n",bits256_str(str,txid)); - return(0); - } if ( (val= LP_txvalue(destaddr,symbol,txid,vout)) >= satoshis ) { threshold = (iambob != 0) ? LP_DEPOSITSATOSHIS(satoshis) : LP_DEXFEE(satoshis);