Max peers reached [8] disconnecting peer (outbound) #9599
Answered
by
bitromortac
youngzhenhao
asked this question in
Q&A
-
Hi, I configed
|
Beta Was this translation helpful? Give feedback.
Answered by
bitromortac
Mar 11, 2025
Replies: 1 comment 3 replies
-
It seems like this option doesn't have an effect, see https://github.com/lightningnetwork/lnd/blob/master/sample-lnd.conf#L842 and that 8 is the default. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you can't specify more than 8 peers currently, because the max is currently hardcoded here: https://github.com/lightningnetwork/lnd/blob/master/config_builder.go#L1531 and the config value is unused for whatever reason. For now your only option is to compile lnd with a different number here, but the fix should be quite simple to have that line read
neutrino.MaxPeers = cfg.NeutrinoMode.MaxPeers
. I'll submit a PR for that.