From c5d958e205ee93b36fd29fd681b5ff92ea5f0ff5 Mon Sep 17 00:00:00 2001 From: Zsolt Felfoldi Date: Fri, 13 Sep 2019 15:58:20 +0200 Subject: [PATCH] les: increased connected bias to lower churn rate --- les/clientpool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/les/clientpool.go b/les/clientpool.go index cff5f41edd..b16c7202ae 100644 --- a/les/clientpool.go +++ b/les/clientpool.go @@ -33,7 +33,7 @@ import ( const ( negBalanceExpTC = time.Hour // time constant for exponentially reducing negative balance fixedPointMultiplier = 0x1000000 // constant to convert logarithms to fixed point format - connectedBias = time.Minute // this bias is applied in favor of already connected clients in order to avoid kicking them out very soon + connectedBias = time.Minute * 5 // this bias is applied in favor of already connected clients in order to avoid kicking them out very soon lazyQueueRefresh = time.Second * 10 // refresh period of the connected queue )