From 08deda7a8cec42f9511b18fbf31aaab33ff15569 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 24 Jun 2018 00:30:39 -1100 Subject: [PATCH] Fix voliter for fill --- iguana/exchanges/LP_ordermatch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index 29864d36a..6845d0121 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -623,7 +623,7 @@ char *LP_trade(void *ctx,char *myipaddr,int32_t mypubsock,struct LP_quoteinfo *q qp->timestamp = (uint32_t)time(NULL); if ( qp->gtc != 0 ) { - qp->uuidstr[0] = 'G'; + strcpy(&qp->uuidstr[strlen(qp->uuidstr)-3],"GTC"); gtc = calloc(1,sizeof(*gtc)); gtc->Q = *qp; gtc->maxprice = maxprice; @@ -1100,6 +1100,8 @@ printf("bob %s received REQUEST.(%s) fill.%d gtc.%d\n",bits256_str(str,G.LP_mypu qp->quotetime = (uint32_t)time(NULL); break; } + if ( qp->fill != 0 ) + break; qp->destsatoshis = (qp->destsatoshis * 2) / 3; } if ( butxo != 0 && j < voliters )