Browse Source

Timestamp in swapstatus

etomic
jl777 7 years ago
parent
commit
2db0f96ae5
  1. 2
      iguana/exchanges/LP_ordermatch.c
  2. 1
      iguana/exchanges/LP_remember.c

2
iguana/exchanges/LP_ordermatch.c

@ -699,7 +699,7 @@ int32_t LP_tradecommand(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,
printf("%s src %s failed SPV check\n",Q.srccoin,bits256_str(str,Q.txid));
return(retval);
}
else if (LP_validSPV(Q.srccoin,Q.coinaddr,Q.txid2,Q.vout2) < 0 )
else if ( LP_validSPV(Q.srccoin,Q.coinaddr,Q.txid2,Q.vout2) < 0 )
{
printf("%s src2 %s failed SPV check\n",Q.srccoin,bits256_str(str,Q.txid2));
return(retval);

1
iguana/exchanges/LP_remember.c

@ -450,6 +450,7 @@ cJSON *LP_swap_json(struct LP_swap_remember *rswap)
{
cJSON *item,*array; int32_t i;
item = cJSON_CreateObject();
jaddnum(item,"timestamp",rswap->expiration - INSTANTDEX_LOCKTIME*2);
jaddnum(item,"tradeid",rswap->tradeid);
jaddnum(item,"requestid",rswap->requestid);
jaddnum(item,"quoteid",rswap->quoteid);

Loading…
Cancel
Save