From b93cf95bd9133837decadadf80146706ff96a021 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 14 Nov 2017 21:59:35 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_network.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/iguana/exchanges/LP_network.c b/iguana/exchanges/LP_network.c index 49cefa778..63bfcdb44 100644 --- a/iguana/exchanges/LP_network.c +++ b/iguana/exchanges/LP_network.c @@ -285,9 +285,7 @@ void gc_loop(void *arg) now = (uint32_t)time(NULL); DL_FOREACH_SAFE(LP_garbage_collector2,up,utmp) { - if ( (uint32_t)up->spendheight > now-120 ) - printf("recent gc2 %u lag.%d\n",up->spendheight,now-up->spendheight); - else + if ( now > (uint32_t)up->spendheight+120 ) { DL_DELETE(LP_garbage_collector2,up); char str[65]; printf("garbage collect %s/v%d\n",bits256_str(str,up->U.txid),up->U.vout); @@ -298,7 +296,7 @@ void gc_loop(void *arg) portable_mutex_unlock(&LP_gcmutex); if ( 0 && flag != 0 ) printf("gc_loop.%d\n",flag); - sleep(1); + sleep(10); } }