From dbfc5f0d58d6210cad05e41efa7ed91d2f2429b4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 26 Sep 2017 18:42:42 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_socket.c b/iguana/exchanges/LP_socket.c index cd8def659..94f689a22 100644 --- a/iguana/exchanges/LP_socket.c +++ b/iguana/exchanges/LP_socket.c @@ -685,8 +685,6 @@ int32_t LP_recvfunc(struct electrum_info *ep,char *str,int32_t len) for (i=0; isymbol)) != 0 ) - coin->updaterate = (uint32_t)time(NULL); } /*else if ( strcmp(method,"blockchain.address.subscribe") == 0 ) never is called { @@ -700,6 +698,8 @@ int32_t LP_recvfunc(struct electrum_info *ep,char *str,int32_t len) { *(ep->heightp) = height; *(ep->heighttimep) = (uint32_t)time(NULL); + if ( (coin= LP_coinfind(ep->symbol)) != 0 ) + coin->updaterate = (uint32_t)time(NULL); printf("%s ELECTRUM >>>>>>>>> set height.%d\n",ep->symbol,height); } }