Browse Source

Bump ideal peer count based on network simulations. See also https://github.com/ethereum/devp2p/wiki/Peer-Selection-Strategy

cl-refactor
subtly 10 years ago
parent
commit
fb7c6a10c0
  1. 2
      eth/main.cpp
  2. 2
      libp2p/Host.h

2
eth/main.cpp

@ -547,7 +547,7 @@ int main(int argc, char** argv)
string publicIP;
string remoteHost;
unsigned short remotePort = 30303;
unsigned peers = 5;
unsigned peers = 11;
bool bootstrap = false;
unsigned networkId = 0;

2
libp2p/Host.h

@ -243,7 +243,7 @@ private:
std::list<std::weak_ptr<RLPXHandshake>> m_connecting; ///< Pending connections.
Mutex x_connecting; ///< Mutex for m_connecting.
unsigned m_idealPeerCount = 5; ///< Ideal number of peers to be connected to.
unsigned m_idealPeerCount = 11; ///< Ideal number of peers to be connected to.
std::map<CapDesc, std::shared_ptr<HostCapabilityFace>> m_capabilities; ///< Each of the capabilities we support.

Loading…
Cancel
Save