From 667a86d5976c27abc4c392ff1f65925cf610e3ea Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 6 Jun 2017 14:21:29 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_swap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iguana/exchanges/LP_swap.c b/iguana/exchanges/LP_swap.c index fb2089468..35ce8f62f 100644 --- a/iguana/exchanges/LP_swap.c +++ b/iguana/exchanges/LP_swap.c @@ -747,6 +747,11 @@ void LP_aliceloop(void *_qp) } if ( LP_swapdata_rawtxsend(qp->pair,swap,0x20000,data,maxlen,&swap->alicespend,0x40000,0) == 0 ) printf("error sending alicespend\n"); + while ( LP_numconfirms(swap,&swap->alicespend) < 1 ) + { + printf("waiting for alicespend to confirm\n"); + sleep(3); + } LP_swapwait(swap->I.req.requestid,swap->I.req.quoteid,4*3600,600); } }