tendermint/p2p/pex
Anton Kaliaev 6fad8eaf5a [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
2018-08-14 18:25:56 -04:00
..
addrbook.go libs: Remove usage of custom Fmt, in favor of fmt.Sprintf (#2199) 2018-08-10 09:25:57 +04:00
addrbook_test.go p2p/pex: Allow configured seed nodes to not be resolvable over DNS (#2129) 2018-08-04 20:35:08 -04:00
errors.go p2p: Reject addrs coming from private peers (#2032) 2018-07-24 17:10:58 +02:00
file.go libs: Remove usage of custom Fmt, in favor of fmt.Sprintf (#2199) 2018-08-10 09:25:57 +04:00
known_address.go Revert "delete everything" (includes everything non-go-crypto) 2018-06-20 17:35:30 -07:00
params.go Revert "delete everything" (includes everything non-go-crypto) 2018-06-20 17:35:30 -07:00
pex_reactor.go [p2p/pex] connect to more than 10 peers (#2169) 2018-08-14 18:25:56 -04:00
pex_reactor_test.go p2p/pex: Allow configured seed nodes to not be resolvable over DNS (#2129) 2018-08-04 20:35:08 -04:00
wire.go Revert "delete everything" (includes everything non-go-crypto) 2018-06-20 17:35:30 -07:00