From 9d49915e649a1358aa35fc5b5b2f037ba4109eb8 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sun, 16 Feb 2014 01:18:49 +0000 Subject: [PATCH] Quick network fix - reduce the max packet sizes. --- libethereum/PeerNetwork.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libethereum/PeerNetwork.cpp b/libethereum/PeerNetwork.cpp index ba4922ec6..f4160fb60 100644 --- a/libethereum/PeerNetwork.cpp +++ b/libethereum/PeerNetwork.cpp @@ -45,9 +45,9 @@ using namespace eth; static const int c_protocolVersion = 4; -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). +static const eth::uint c_maxHashes = 64; ///< Maximum number of hashes GetChain will ever send. +static const eth::uint c_maxBlocks = 32; ///< 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 = 256; ///< Maximum number of blocks we ask to receive in Blocks (when using GetChain). // Addresses we will skip during network interface discovery // Use a vector as the list is small