Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Sfpi3-0002ht-1M for bitcoin-development@lists.sourceforge.net; Sat, 16 Jun 2012 09:54:23 +0000 Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of gmail.com designates 74.125.82.175 as permitted sender) client-ip=74.125.82.175; envelope-from=andyparkins@gmail.com; helo=mail-we0-f175.google.com; Received: from mail-we0-f175.google.com ([74.125.82.175]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1Sfpi2-0000ao-9h for bitcoin-development@lists.sourceforge.net; Sat, 16 Jun 2012 09:54:23 +0000 Received: by werg55 with SMTP id g55so2957867wer.34 for ; Sat, 16 Jun 2012 02:54:16 -0700 (PDT) Received: by 10.216.145.153 with SMTP id p25mr4825279wej.112.1339840456051; Sat, 16 Jun 2012 02:54:16 -0700 (PDT) Received: from grissom.localnet ([91.84.15.31]) by mx.google.com with ESMTPS id d10sm16337658wiy.3.2012.06.16.02.54.14 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 16 Jun 2012 02:54:15 -0700 (PDT) From: Andy Parkins To: Wladimir Date: Sat, 16 Jun 2012 10:54:11 +0100 User-Agent: KMail/1.13.7 (Linux/3.2.0-1-686-pae; KDE/4.7.4; i686; ; ) References: <201206160916.24485.andyparkins@gmail.com> In-Reply-To: MIME-Version: 1.0 Message-Id: <201206161054.11537.andyparkins@gmail.com> Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit X-Spam-Score: -1.6 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (andyparkins[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1Sfpi2-0000ao-9h Cc: bitcoin-development@lists.sourceforge.net Subject: Re: [Bitcoin-development] Proposed new P2P command and response: getcmds, cmdlist 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: Sat, 16 Jun 2012 09:54:23 -0000 On Saturday 16 Jun 2012 09:42:21 Wladimir wrote: > Which is a perfectly reasonable requirement. However, one could simply > standardize what a 'thin client' and what a 'thick client' does and > offers (at a certain version level), without having to explicitly > enumerate everything over the protocol. My problem is that that I suspect the spectrum of clients will be far more than simply "thin" or "thick". What about thick-pruned, thick-full? What about thin-blocks-on-demand and thin-headers-on-demand? These are just what I can think of now; it seems unwise to limit the functionality of clients not yet designed with a binary designation. So... we make a field that can hold more than just a bit; with each possible value representing a specific (possibly overlapping) set of features? Why not just enumerate the features then? I did write responses to each of your following points; but they just sounded like me being contrary. The short version is that I think too much emphasis is being placed on defining a specific set of feature->version mapping. That's going to make it hard for future clients that want to implement some of the features but not all, and yet still want to be good bitcoin citizens and be able to tell their peers what they don't support. For example, there is no easy way for a node to tell another that it doesn't have the whole block chain available, so requesting it from it will fail. > I'm just afraid that the currently simple P2P protocol will turn into a > zoo of complicated (and potentially buggy/insecure) interactions. Fair enough. > So maybe a capability system is a good idea but then the granularity > should be large, not command-level. The interaction between protocol > versions and capabilities needs to be defined as well. Does offering > "getdata" at protocol version 10 mean the same as offering it at > protocol version 11"? Probably not guaranteed. The arguments might have > changed. So it's not entirely self-documenting either. That problem doesn't go away just because you don't have a capabilities system. Either version 11 can speak version 10 or it can't. I don't see how having a system for finding out that fact changes anything other than removing a load of protocol noise. "I support getdata10" makes it far easier to discover that the peer supports getdata10 than sending getdata11 and watching it fail does. Andy -- Dr Andy Parkins andyparkins@gmail.com