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:
parent
a52f013161
commit
66189f1a21
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user