Browse Source

Test

etomic
jl777 8 years ago
parent
commit
df63c67209
  1. 5
      iguana/exchanges/LP_rpc.c
  2. 5
      iguana/exchanges/LP_utxos.c

5
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 )
{

5
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);

Loading…
Cancel
Save