From 66189f1a21813bd505635c0124e0b2d2b14ee40d Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Fri, 5 Apr 2019 16:07:54 -0700 Subject: [PATCH] lnd: increase neutrino ban duration to 48hrs from 5s In this commit, we fix an oversight that overrode the default ban duration for neutrino to 5s from the default 24 hrs. We correct this by raising the ban duration to 48hrs. In the future in order to ignore these peers persistently, we'll need to start to persist our ban list. However that's a change for another time. --- chainregistry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chainregistry.go b/chainregistry.go index 55fba4f3..31fe561c 100644 --- a/chainregistry.go +++ b/chainregistry.go @@ -722,7 +722,7 @@ func initNeutrinoBackend(chainDir string) (*neutrino.ChainService, func(), error } neutrino.MaxPeers = 8 - neutrino.BanDuration = 5 * time.Second + neutrino.BanDuration = time.Hour * 48 neutrinoCS, err := neutrino.NewChainService(config) if err != nil {