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 2019-04-05 16:07:54 -07:00
parent a52f013161
commit 66189f1a21
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

@ -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 {