Browse Source

Test

etomic
jl777 8 years ago
parent
commit
360039ba06
  1. 4
      iguana/exchanges/LP_nativeDEX.c
  2. 4
      iguana/exchanges/LP_remember.c

4
iguana/exchanges/LP_nativeDEX.c

@ -119,11 +119,7 @@ void LP_mainloop(struct LP_peerinfo *mypeer,uint16_t mypubport,int32_t pubsock,i
LP_utxosquery(0,mypeer,pubsock,peer->ipaddr,peer->port,"",100,mypeer != 0 ? mypeer->ipaddr : "127.0.0.1",myport,profitmargin); LP_utxosquery(0,mypeer,pubsock,peer->ipaddr,peer->port,"",100,mypeer != 0 ? mypeer->ipaddr : "127.0.0.1",myport,profitmargin);
} }
if ( (retstr= basilisk_swaplist()) != 0 ) if ( (retstr= basilisk_swaplist()) != 0 )
{
printf("%s\ngetchar to continue\n",retstr);
getchar();
free(retstr); free(retstr);
}
if ( amclient != 0 ) if ( amclient != 0 )
{ {
while ( 1 ) while ( 1 )

4
iguana/exchanges/LP_remember.c

@ -50,7 +50,7 @@ void basilisk_dontforget(struct basilisk_swap *swap,struct basilisk_rawtx *rawtx
LP_swap_coinaddr(swap,&swap->bobcoin,coinaddr,rawtx->txbytes,rawtx->I.datalen); LP_swap_coinaddr(swap,&swap->bobcoin,coinaddr,rawtx->txbytes,rawtx->I.datalen);
if ( coinaddr[0] != 0 ) if ( coinaddr[0] != 0 )
{ {
//LP_importaddress(swap->bobcoin.symbol,coinaddr); LP_importaddress(swap->bobcoin.symbol,coinaddr);
if ( rawtx == &swap->bobdeposit ) if ( rawtx == &swap->bobdeposit )
safecopy(swap->Bdeposit,coinaddr,sizeof(swap->Bdeposit)); safecopy(swap->Bdeposit,coinaddr,sizeof(swap->Bdeposit));
else safecopy(swap->Bpayment,coinaddr,sizeof(swap->Bpayment)); else safecopy(swap->Bpayment,coinaddr,sizeof(swap->Bpayment));
@ -72,7 +72,7 @@ void basilisk_dontforget(struct basilisk_swap *swap,struct basilisk_rawtx *rawtx
if ( bits256_nonz(swap->I.pubAm) != 0 && bits256_nonz(swap->I.pubBn) != 0 ) if ( bits256_nonz(swap->I.pubAm) != 0 && bits256_nonz(swap->I.pubBn) != 0 )
{ {
basilisk_alicescript(redeemscript,&len,script,0,coinaddr,swap->alicecoin.p2shtype,swap->I.pubAm,swap->I.pubBn); basilisk_alicescript(redeemscript,&len,script,0,coinaddr,swap->alicecoin.p2shtype,swap->I.pubAm,swap->I.pubBn);
//LP_importaddress(swap->alicecoin.symbol,coinaddr); LP_importaddress(swap->alicecoin.symbol,coinaddr);
fprintf(fp,",\"Apayment\":\"%s\"",coinaddr); fprintf(fp,",\"Apayment\":\"%s\"",coinaddr);
} }
if ( rawtx->I.redeemlen > 0 ) if ( rawtx->I.redeemlen > 0 )

Loading…
Cancel
Save