Browse Source

Test

etomic
jl777 7 years ago
parent
commit
1c0815ab1a
  1. 2
      iguana/exchanges/LP_remember.c
  2. 4
      iguana/exchanges/LP_transaction.c

2
iguana/exchanges/LP_remember.c

@ -375,6 +375,8 @@ int32_t basilisk_swap_isfinished(int32_t iambob,bits256 *txids,int32_t *sentflag
}
else if ( bits256_nonz(Apaymentspent) != 0 )
return(1);
else if ( bits256_nonz(paymentspent) != 0 && bits256_nonz(depositspent) != 0 )
return(1);
}
else
{

4
iguana/exchanges/LP_transaction.c

@ -1660,7 +1660,7 @@ bits256 LP_swap_spendtxid(char *symbol,char *destaddr,bits256 utxotxid,int32_t u
memset(&spendtxid,0,sizeof(spendtxid));
if ( LP_spendsearch(destaddr,&spendtxid,&spendvin,symbol,utxotxid,utxovout) > 0 )
{
char str[65]; printf("spend of %s/v%d detected\n",bits256_str(str,utxotxid),utxovout);
//char str[65]; printf("spend of %s/v%d detected\n",bits256_str(str,utxotxid),utxovout);
}
else if ( (coin= LP_coinfind(symbol)) != 0 && coin->electrum == 0 )
{
@ -1675,7 +1675,7 @@ bits256 LP_swap_spendtxid(char *symbol,char *destaddr,bits256 utxotxid,int32_t u
{
if ( (vins= jarray(&m,txobj,"vin")) != 0 )
{
printf("vins.(%s)\n",jprint(vins,0));
//printf("vins.(%s)\n",jprint(vins,0));
if ( utxovout < m )
{
vin = jitem(vins,utxovout);

Loading…
Cancel
Save