diff --git a/chainregistry.go b/chainregistry.go index 90b2a264..772eee09 100644 --- a/chainregistry.go +++ b/chainregistry.go @@ -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 { diff --git a/docs/INSTALL.md b/docs/INSTALL.md index bbef6626..87e4360d 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -198,6 +198,7 @@ neutrino: --neutrino.banduration= How long to ban misbehaving peers. Valid time units are {s, m, h}. Minimum 1 second --neutrino.banthreshold= Maximum allowed ban score before disconnecting and banning misbehaving peers. --neutrino.useragentname= Used to help identify ourselves to other bitcoin peers. + --neutrino.useragentversion= Used to help identify ourselves to other bitcoin peers. ``` ## Bitcoind Options diff --git a/lncfg/neutrino.go b/lncfg/neutrino.go index 429600b4..4b638e6d 100644 --- a/lncfg/neutrino.go +++ b/lncfg/neutrino.go @@ -13,4 +13,5 @@ type Neutrino struct { FeeURL string `long:"feeurl" description:"Optional URL for fee estimation. If a URL is not specified, static fees will be used for estimation."` AssertFilterHeader string `long:"assertfilterheader" description:"Optional filter header in height:hash format to assert the state of neutrino's filter header chain on startup. If the assertion does not hold, then the filter header chain will be re-synced from the genesis block."` UserAgentName string `long:"useragentname" description:"Used to help identify ourselves to other bitcoin peers"` + UserAgentVersion string `long:"useragentversion" description:"Used to help identify ourselves to other bitcoin peers"` }