Browse Source

Vaguely proper parameters.

cl-refactor
Gav Wood 11 years ago
parent
commit
17775cb05f
  1. 6
      libethereum/PeerNetwork.cpp

6
libethereum/PeerNetwork.cpp

@ -31,9 +31,9 @@
using namespace std;
using namespace eth;
static const eth::uint c_maxHashes = 4; ///< Maximum number of hashes GetChain will ever send.
static const eth::uint c_maxBlocks = 4; ///< Maximum number of blocks Blocks will ever send.
static const eth::uint c_maxBlocksAsk = 256; ///< Maximum number of blocks we ask to receive in Blocks (when using GetChain).
static const eth::uint c_maxHashes = 256; ///< Maximum number of hashes GetChain will ever send.
static const eth::uint c_maxBlocks = 128; ///< Maximum number of blocks Blocks will ever send. BUG: if this gets too big (e.g. 2048) stuff starts going wrong.
static const eth::uint c_maxBlocksAsk = 2048; ///< Maximum number of blocks we ask to receive in Blocks (when using GetChain).
PeerSession::PeerSession(PeerServer* _s, bi::tcp::socket _socket, uint _rNId):
m_server(_s),

Loading…
Cancel
Save