Browse Source

Test

etomic
jl777 7 years ago
parent
commit
7b1d586cf9
  1. 1
      iguana/exchanges/LP_ordermatch.c
  2. 1
      iguana/exchanges/LP_utxo.c

1
iguana/exchanges/LP_ordermatch.c

@ -974,6 +974,7 @@ struct LP_quoteinfo *LP_trades_gotconnect(void *ctx,struct LP_quoteinfo *qp,stru
printf("check reservation\n");
if ( LP_reservation_check(qp->txid,qp->vout,qp->desthash) == 0 && LP_reservation_check(qp->txid2,qp->vout2,qp->desthash) == 0 )
{
printf("CONNECT STARTBOB!\n");
LP_connectstartbob(ctx,LP_mypubsock,qp->srccoin,qp->destcoin,qprice,qp);
return(qp);
} else printf("connect message from non-reserved (%llu)\n",(long long)qp->aliceid);

1
iguana/exchanges/LP_utxo.c

@ -112,6 +112,7 @@ struct LP_inuse_info *_LP_inuse_add(uint32_t expiration,bits256 otherpub,bits256
int32_t LP_reservation_check(bits256 txid,int32_t vout,bits256 pubkey)
{
struct LP_inuse_info *lp; int32_t retval = -1;
printf("LP_reservation check\n");
if ( bits256_nonz(pubkey) != 0 )
{
char str[65],str2[65];

Loading…
Cancel
Save