From 20deff31f63dc70db4ccd2df9190117fa57bdc0b Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 4 Dec 2017 15:53:40 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_include.h | 1 - iguana/exchanges/LP_ordermatch.c | 2 +- iguana/exchanges/LP_swap.c | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_include.h b/iguana/exchanges/LP_include.h index b008acdc7..90e2ecf14 100644 --- a/iguana/exchanges/LP_include.h +++ b/iguana/exchanges/LP_include.h @@ -387,7 +387,6 @@ struct basilisk_swap char Bdeposit[64],Bpayment[64]; uint64_t aliceid,otherdeck[INSTANTDEX_DECKSIZE][2],deck[INSTANTDEX_DECKSIZE][2]; uint8_t persistent_pubkey33[33],persistent_other33[33],changermd160[20],pad[15],verifybuf[100000]; - }; struct LP_pubkey_quote diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index f23e1a7b5..85e4f5088 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -1168,7 +1168,7 @@ void LP_tradecommandQ(struct LP_quoteinfo *qp,char *pairstr,int32_t funcid) int32_t LP_tradecommand(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,uint8_t *data,int32_t datalen) { - int32_t Qtrades = 0; + int32_t Qtrades = 1; char *method,str[65]; int32_t num,DEXselector = 0; uint64_t aliceid; double qprice,bestprice,price,bid,ask; cJSON *proof; struct iguana_info *coin; struct LP_quoteinfo Q,Q2; int32_t counter,retval=-1; if ( (method= jstr(argjson,"method")) != 0 && (strcmp(method,"reserved") == 0 ||strcmp(method,"connected") == 0 || strcmp(method,"request") == 0 || strcmp(method,"connect") == 0) ) { diff --git a/iguana/exchanges/LP_swap.c b/iguana/exchanges/LP_swap.c index f61b60f12..da7597e47 100644 --- a/iguana/exchanges/LP_swap.c +++ b/iguana/exchanges/LP_swap.c @@ -935,7 +935,6 @@ void LP_aliceloop(void *_swap) } free(data); basilisk_swap_finished(swap); - printf("finish swap.%p\n",swap); free(swap); G.LP_pendingswaps--; }