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 )