|
|
@ -199,7 +199,7 @@ int32_t LP_swapstats_update(struct LP_swapstats *sp,struct LP_quoteinfo *qp,cJSO |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
if ( requestid == sp->Q.R.requestid && quoteid == sp->Q.R.quoteid ) |
|
|
|
//if ( requestid == sp->Q.R.requestid && quoteid == sp->Q.R.quoteid )
|
|
|
|
printf("mismatched tradestatus aliceid.%22llu b%s/%s r%s/%s r%u/%u q%u/%u %.8f/%.8f -> %.8f/%.8f\n",(long long)sp->aliceid,base,sp->Q.srccoin,rel,sp->Q.destcoin,requestid,sp->Q.R.requestid,quoteid,sp->Q.R.quoteid,dstr(satoshis+2*sp->Q.txfee),dstr(sp->Q.satoshis),dstr(destsatoshis+2*sp->Q.desttxfee),dstr(sp->Q.destsatoshis)); |
|
|
|
return(-1); |
|
|
|
} |
|
|
@ -302,7 +302,7 @@ int32_t LP_statslog_parsequote(char *method,cJSON *lineobj) |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
printf("create aliceid.%llu\n",(long long)aliceid); |
|
|
|
//printf("create aliceid.%llu\n",(long long)aliceid);
|
|
|
|
if ( (sp= LP_swapstats_add(aliceid,RTflag)) != 0 ) |
|
|
|
{ |
|
|
|
sp->Q = Q; |
|
|
|