From 28dbbff3668c5d1c6cda07cce693eb9eb8f29b6d Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sun, 16 Feb 2014 15:52:05 +0000 Subject: [PATCH] Reduce network packing. --- alethzero/MainWin.cpp | 2 +- libethereum/PeerNetwork.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/alethzero/MainWin.cpp b/alethzero/MainWin.cpp index 24e0f4034..7f5847009 100644 --- a/alethzero/MainWin.cpp +++ b/alethzero/MainWin.cpp @@ -24,7 +24,7 @@ Main::Main(QWidget *parent) : { setWindowFlags(Qt::Window); ui->setupUi(this); - g_logPost = [=](std::string const& s, char const*) { ui->log->addItem(QString::fromStdString(s)); }; + g_logPost = [=](std::string const& s, char const* c) { simpleDebugOut(s, c); ui->log->addItem(QString::fromStdString(s)); }; m_client = new Client("AlethZero"); readSettings(); diff --git a/libethereum/PeerNetwork.cpp b/libethereum/PeerNetwork.cpp index 2df07e754..f5ede2725 100644 --- a/libethereum/PeerNetwork.cpp +++ b/libethereum/PeerNetwork.cpp @@ -45,8 +45,8 @@ using namespace eth; static const int c_protocolVersion = 4; -static const eth::uint c_maxHashes = 512; ///< Maximum number of hashes GetChain will ever send. -static const eth::uint c_maxBlocks = 256; ///< 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_maxHashes = 32; ///< 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