Browse Source

Test

etomic
jl777 8 years ago
parent
commit
63bdc5fe9b
  1. 4
      .gitignore
  2. 2
      basilisk/basilisk_swap.c

4
.gitignore

@ -304,3 +304,7 @@ iguana/DB/SWAPS/3430299677-3087427598
iguana/DB/SWAPS/2275651697-591036515
iguana/DB/SWAPS/2180638961-896149751
iguana/DB/SWAPS/2349180798-2344225091
iguana/DB/SWAPS/1395238080-4120976642

2
basilisk/basilisk_swap.c

@ -2315,7 +2315,7 @@ void basilisk_psockinit(struct supernet_info *myinfo,struct basilisk_swap *swap,
if ( nn_connect(pushsock,pushaddr) >= 0 && nn_connect(subsock,subaddr) >= 0 )
{
swap->connected = 1;
sprintf((char *)data,"{\"push\":\"%s\",\"sub\":\"%s\"}",pushaddr,subaddr);
sprintf((char *)data,"{\"push\":\"%s\",\"sub\":\"%s\",\"trade\":[\"%s\", %.8f, \"%s\", %.8f]}",pushaddr,subaddr,swap->I.req.src,dstr(swap->I.req.srcamount),swap->I.req.dest,dstr(swap->I.req.destamount));
datalen = (int32_t)strlen((char *)data) + 1;
printf("datalen.%d (%s)\n",datalen,(char *)data);
init_hexbytes_noT(databuf,data,datalen);

Loading…
Cancel
Save