From 3dfd57aecb872892d1ab680e6b31fd929ec3a94f Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 13 Jul 2016 13:17:51 -0300 Subject: [PATCH] test --- basilisk/basilisk_swap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/basilisk/basilisk_swap.c b/basilisk/basilisk_swap.c index 6cb74415b..81eec9767 100755 --- a/basilisk/basilisk_swap.c +++ b/basilisk/basilisk_swap.c @@ -922,6 +922,8 @@ void basilisk_swaploop(void *_swap) } else if ( (swap->statebits & 0x02) == 0 ) // wait for pubkeys { + datalen = basilisk_swapdata_deck(myinfo,swap,data,maxlen); + basilisk_swapsend(myinfo,swap,0x02,data,datalen,0x01); if ( basilisk_swapget(myinfo,swap,0x02,data,maxlen,basilisk_verify_otherdeck) == 0 ) swap->statebits |= 0x02; } @@ -1247,7 +1249,7 @@ void basilisk_swaploop(void *_swap) } } } - if ( myinfo->RELAYID >= 0 ) + if ( 1 || myinfo->RELAYID >= 0 ) sleep(1); else {