Skip to content

Max peers reached [8] disconnecting peer (outbound) #9599

Answered by bitromortac
youngzhenhao asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@youngzhenhao
Comment options

@bitromortac
Comment options

Answer selected by youngzhenhao
@youngzhenhao
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants