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.
This commit is contained in:
Olaoluwa Osuntokun committed 2019-04-05 16:07:54 -07:00
1 parent a52f013161
commit 66189f1a21
1 file changed
+1 -1
+1 -1
View File
@@ -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 {