From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Waj4Y-0007hP-9V for bitcoin-development@lists.sourceforge.net; Thu, 17 Apr 2014 09:57:34 +0000 X-ACL-Warn: Received: from kabab.cs.huji.ac.il ([132.65.116.12]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1Waj4W-0008L2-At for bitcoin-development@lists.sourceforge.net; Thu, 17 Apr 2014 09:57:34 +0000 Received: from seven.cs.huji.ac.il ([132.65.80.22]) by kabab.cs.huji.ac.il with esmtp id 1Waiql-00041x-8W for bitcoin-development@lists.sourceforge.net; Thu, 17 Apr 2014 12:43:19 +0300 Message-ID: <534FA237.1010501@cs.huji.ac.il> Date: Thu, 17 Apr 2014 12:43:19 +0300 From: Sharon Dvir User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Thunderbird/28.0 MIME-Version: 1.0 To: bitcoin-development@lists.sourceforge.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain X-Headers-End: 1Waj4W-0008L2-At Subject: [Bitcoin-development] question about ProcessMessage() X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2014 09:57:34 -0000 Hi, in main.cpp, ProcessMessage(), the line: if (vAddr.size() < 1000) that appears at about line 3290 (not sure which, as I have made changes.) What is the purpose of this line? vAddr.size() was already checked at about line 3240, and if it was > 1000, the function has returned. Is pfrom->fGetAddr allowed to be true iff vAddr.size()==1000 ? Could not find it in list archive. Thanks.