From: alex Date: Mon, 29 Jul 2013 00:10:56 +0000 (+0400) Subject: Don't announce non-peer CNodes X-Git-Tag: v0.4.4-pre^0 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=a8bd23ddaf0ef33b73b970c567cd5c38a9c2a17a Don't announce non-peer CNodes --- diff --git a/src/net.h b/src/net.h index b2b03fa..a7d9c62 100644 --- a/src/net.h +++ b/src/net.h @@ -241,7 +241,7 @@ public: setInventoryKnown.max_size(SendBufferSize() / 1000); // Be shy and don't send version until we hear - if (!fInbound) + if (hSocket != INVALID_SOCKET && !fInbound) PushVersion(); }