mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-25 21:21:33 +02:00
lnd: pass through neutrino MaxPeers config
This enables users to set the config. We check that the currently set value of MaxPeers is non-zero.
This commit is contained in:
@@ -248,6 +248,9 @@ const (
|
||||
bitcoindBackendName = "bitcoind"
|
||||
btcdBackendName = "btcd"
|
||||
neutrinoBackendName = "neutrino"
|
||||
|
||||
defaultPrunedNodeMaxPeers = 4
|
||||
defaultNeutrinoMaxPeers = 8
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -285,8 +288,6 @@ var (
|
||||
// estimatesmartfee RPC call.
|
||||
defaultBitcoindEstimateMode = "CONSERVATIVE"
|
||||
bitcoindEstimateModes = [2]string{"ECONOMICAL", defaultBitcoindEstimateMode}
|
||||
|
||||
defaultPrunedNodeMaxPeers = 4
|
||||
)
|
||||
|
||||
// Config defines the configuration options for lnd.
|
||||
@@ -599,6 +600,7 @@ func DefaultConfig() Config {
|
||||
NeutrinoMode: &lncfg.Neutrino{
|
||||
UserAgentName: neutrino.UserAgentName,
|
||||
UserAgentVersion: neutrino.UserAgentVersion,
|
||||
MaxPeers: defaultNeutrinoMaxPeers,
|
||||
},
|
||||
BlockCacheSize: defaultBlockCacheSize,
|
||||
MaxPendingChannels: lncfg.DefaultMaxPendingChannels,
|
||||
|
Reference in New Issue
Block a user