From 7b0133b24826d16217f568b9721605049cdd9d85 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 3 Apr 2018 11:46:27 +0300 Subject: [PATCH] Fix --- iguana/exchanges/LP_ordermatch.c | 2 +- iguana/exchanges/LP_remember.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index ef5719c21..06a1d8acc 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -579,7 +579,7 @@ char *LP_trade(void *ctx,char *myipaddr,int32_t mypubsock,struct LP_quoteinfo *q LP_query(ctx,myipaddr,mypubsock,"request",qp); LP_Alicequery = *qp, LP_Alicemaxprice = maxprice, Alice_expiration = qp->timestamp + timeout, LP_Alicedestpubkey = destpubkey; char str[65]; printf("LP_trade %s/%s %.8f vol %.8f dest.(%s) maxprice %.8f etomicdest.(%s)\n",qp->srccoin,qp->destcoin,dstr(qp->satoshis),dstr(qp->destsatoshis),bits256_str(str,LP_Alicedestpubkey),maxprice,qp->etomicdest); - return(LP_recent_swaps(0,qp->requestid)); + return(LP_recent_swaps(0,qp->R.requestid)); } int32_t LP_quotecmp(int32_t strictflag,struct LP_quoteinfo *qp,struct LP_quoteinfo *qp2) diff --git a/iguana/exchanges/LP_remember.c b/iguana/exchanges/LP_remember.c index 540a2325b..5f9bba84d 100644 --- a/iguana/exchanges/LP_remember.c +++ b/iguana/exchanges/LP_remember.c @@ -1778,7 +1778,7 @@ char *LP_recent_swaps(int32_t limit,uint32_t origrequestid) if ( origrequestid != 0 ) { jaddnum(retjson,"requestid",origrequestid); - jaddnum(retjson,"desthash",G.LP_mypub25519); + jaddbits256(retjson,"desthash",G.LP_mypub25519); } return(jprint(retjson,1)); }