From 954b6b09872e4024f70e9f0ca0eef15416060a11 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 26 Oct 2017 20:01:18 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_bitcoin.c | 2 +- iguana/exchanges/LP_stats.c | 23 +++++++++++++++++++++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_bitcoin.c b/iguana/exchanges/LP_bitcoin.c index 3ab402856..fb8e1f69e 100644 --- a/iguana/exchanges/LP_bitcoin.c +++ b/iguana/exchanges/LP_bitcoin.c @@ -2031,7 +2031,7 @@ int32_t bitcoin_addr2rmd160(uint8_t taddr,uint8_t *addrtypep,uint8_t rmd160[20], } for (i=0; imethodind = methodind; LP_swapstats_update(sp,&Q,lineobj); - } else printf("unexpected.%d tradestatus.(%s)\n",unexpected++,jprint(lineobj,0)); + } + else + { + HASH_ITER(hh,LP_swapstats,sp,tmp) + { + if ( sp->Q.R.requestid == requestid && sp->Q.R.quoteid == quoteid ) + { + sp->methodind = methodind; + LP_swapstats_update(sp,&Q,lineobj); + flag = 1; + break; + } + } + } + if ( flag == 0 ) + printf("unexpected.%d tradestatus.(%s)\n",unexpected++,jprint(lineobj,0)); return(0); } if ( LP_quoteparse(&Q,lineobj) < 0 )