Browse Source

Test

etomic
jl777 7 years ago
parent
commit
fa6ccd45d2
  1. 16
      iguana/exchanges/LP_ordermatch.c

16
iguana/exchanges/LP_ordermatch.c

@ -492,9 +492,12 @@ int32_t LP_connectstartbob(void *ctx,int32_t pubsock,char *base,char *rel,double
bits256 zero;
memset(zero.bytes,0,sizeof(zero));
LP_reserved_msg(1,base,rel,zero,jprint(reqjson,0));
//sleep(1);
//LP_reserved_msg(1,base,rel,qp->desthash,jprint(reqjson,0));
//LP_reserved_msg(0,base,rel,zero,jprint(reqjson,0));
if ( IAMLP == 0 )
{
sleep(1);
LP_reserved_msg(1,qp->srccoin,qp->destcoin,qp->desthash,jprint(reqjson,0));
}
LP_reserved_msg(0,base,rel,zero,jprint(reqjson,0));
free_json(reqjson);
retval = 0;
} else printf("error launching swaploop\n");
@ -910,8 +913,11 @@ struct LP_quoteinfo *LP_trades_gotrequest(void *ctx,struct LP_quoteinfo *qp,stru
LP_reserved_msg(1,qp->srccoin,qp->destcoin,zero,jprint(reqjson,0));
printf("send reserved\n");
//LP_reserved_msg(0,qp->srccoin,qp->destcoin,zero,jprint(reqjson,0));
sleep(1);
LP_reserved_msg(1,qp->srccoin,qp->destcoin,qp->desthash,jprint(reqjson,0));
if ( IAMLP == 0 )
{
sleep(1);
LP_reserved_msg(1,qp->srccoin,qp->destcoin,qp->desthash,jprint(reqjson,0));
}
free_json(reqjson);
return(qp);
} else printf("request processing selected ineligible utxos?\n");

Loading…
Cancel
Save