Permalink
Please sign in to comment.
Browse files
[p2p/pex] connect to more than 10 peers (#2169)
* [p2p/pex] connect to more than 10 peers also, remove DefaultMinNumOutboundPeers because a) I am not sure it's needed b) it's super confusing look closely ``` maxPeers := sw.config.MaxNumPeers - DefaultMinNumOutboundPeers if maxPeers <= sw.peers.Size() { sw.Logger.Info("Ignoring inbound connection: already have enough peers", "address", inConn.RemoteAddr().String(), "numPeers", sw.peers.Size(), "max", maxPeers) ``` we print maxPeers = config.MaxPeers - DefaultMinNumOutboundPeers. So we may not have enough peers even though we say we have enough. Refs #2130 * update spec * replace MaxNumPeers with MaxNumInboundPeers/MaxNumOutboundPeers Refs #2130 * update changelog * make max rpc conns formula visible to users * update spec * docs: note max outbound peers excludes persistent
- Loading branch information...
Showing
with
60 additions
and 32 deletions.
- +1 −0 CHANGELOG_PENDING.md
- +11 −7 config/config.go
- +9 −2 config/toml.go
- +13 −8 docs/spec/reactors/pex/pex.md
- +10 −3 docs/tendermint-core/configuration.md
- +2 −3 p2p/pex/pex_reactor.go
- +14 −9 p2p/switch.go
0 comments on commit
6fad8ea