From 63bdc5fe9b289eb8f287a2ff7a068e3a4d24a0ee Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 10 Apr 2017 16:58:49 +0300 Subject: [PATCH] Test --- .gitignore | 4 ++++ basilisk/basilisk_swap.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index bab559bfd..62c1f4100 100755 --- a/.gitignore +++ b/.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 diff --git a/basilisk/basilisk_swap.c b/basilisk/basilisk_swap.c index 7106a2c49..4786d0b20 100755 --- a/basilisk/basilisk_swap.c +++ b/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);