lnd: expose user agent version as config option

Expose the neutrino `UserAgentVersion` config option. This can be set
by starting lnd with the `--neutrino.useragentversion=` flag.
This commit is contained in:
Tom Kirkpatrick committed 2020-06-04 13:12:08 +02:00
1 parent 4394cc39af
commit bafab33beb
3 files changed
+3

No files matched your search

+1
View File
@@ -786,6 +786,7 @@ func initNeutrinoBackend(cfg *Config, chainDir string) (*neutrino.ChainService,
neutrino.MaxPeers = 8
neutrino.BanDuration = time.Hour * 48
neutrino.UserAgentName = cfg.NeutrinoMode.UserAgentName
neutrino.UserAgentVersion = cfg.NeutrinoMode.UserAgentVersion
neutrinoCS, err := neutrino.NewChainService(config)
if err != nil {