From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1WspM1-00026p-SX for bitcoin-development@lists.sourceforge.net; Fri, 06 Jun 2014 08:18:25 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of petertodd.org designates 62.13.149.43 as permitted sender) client-ip=62.13.149.43; envelope-from=pete@petertodd.org; helo=outmail149043.authsmtp.co.uk; Received: from outmail149043.authsmtp.co.uk ([62.13.149.43]) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1WspM0-0003Og-Bb for bitcoin-development@lists.sourceforge.net; Fri, 06 Jun 2014 08:18:25 +0000 Received: from mail-c235.authsmtp.com (mail-c235.authsmtp.com [62.13.128.235]) by punt17.authsmtp.com (8.14.2/8.14.2/) with ESMTP id s568IHiJ063692; Fri, 6 Jun 2014 09:18:17 +0100 (BST) Received: from savin (76-10-178-109.dsl.teksavvy.com [76.10.178.109]) (authenticated bits=128) by mail.authsmtp.com (8.14.2/8.14.2/) with ESMTP id s568I8se018220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 6 Jun 2014 09:18:10 +0100 (BST) Date: Fri, 6 Jun 2014 04:19:33 -0400 From: Peter Todd To: bitcoin-development@lists.sourceforge.net, Gregory Maxwell Message-ID: <20140606081933.GA29458@savin> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Server-Quench: 194ee843-ed53-11e3-b396-002590a15da7 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCd2Yg0TA1ZNQRgX IjsJECJaVQIpKltL GxAVKBZePFsRUQkR aAdMdgQUEkAaAgsB AmIbW11eUVV7WGI7 bAxPbAVDY01GQQRq WVdMSlVNFUsrBBoJ fxZdBxlzfwdEeDB5 ZkVhEHFSWBEvfUJ+ XxsAEG4bZGY1a31N U0leagNUcgZDfk5E bwQuUz1zHhFyCQgc OCgWdys8JyteIykd SAARRQAA X-Authentic-SMTP: 61633532353630.1023:706 X-AuthFastPath: 0 (Was 255) X-AuthSMTP-Origin: 76.10.178.109/587 X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Spam-Score: -1.5 (-) 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 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1WspM0-0003Og-Bb Subject: [Bitcoin-development] NODE_BLOOM service bit 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: Fri, 06 Jun 2014 08:18:26 -0000 --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable BIP: https://github.com/petertodd/bips/blob/bip-node-bloom/bip-node-bloom.m= ediawiki Pull-req: https://github.com/bitcoin/bitcoin/pull/2900 Pretty simple really: service bit NODE_BLOOM is defined to allow nodes to advertise to their peers that they support bloom filters. The network protocol version number is also bumped. Recommended behavior for nodes that do not support bloom is to simply disconnect peers who send a filter* message anyway to let them quickly find another peer. Rational: Bloom filters are not always supported or appropriate. For instance no node implementation other than Bitcoin Core supports them, e.g btcd and obelisk. (which ironically implement this BIP already, modulo the version number bump) In the long term bloom filters will be obsoleted eventually as they have poor scaling properties - problematic with blocksize increases - and are incompatible with UTXO/TXO commitments, which will use prefix-based filtering instead. (already being implemented in electrum and obelisk) In the short term bloom filters have high IO loads, which have lead to DoS attacks, and are not an optimal use of resources for nodes which are IO constrained rather than bandwidth constrained. (common in VPS setups which could better help the network by serving full blocks) Adding NODE_BLOOM as a service bit now will save us some hassle later down the road, reflects what actual implementations do anyway, has been already deployed on Litecoin, Dogecoin, and a zillion other alts with no issues, (including SPV client support) and is a trivial patch. Gregory Maxwell: Please assign a BIP # --=20 'peter'[:-1]@petertodd.org 000000000000000049066dab2483c9e069656239f5782da204bd4995bd92c19f --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQGrBAEBCACVBQJTkXmQXhSAAAAAABUAQGJsb2NraGFzaEBiaXRjb2luLm9yZzAw MDAwMDAwMDAwMDAwMDAyYzhhMWU0OGEyNDJlMmVkYmYxZTJlOWJjNDcxMzcwODNk NzFlN2Y2YzRhMGViNjYvFIAAAAAAFQARcGthLWFkZHJlc3NAZ251cGcub3JncGV0 ZUBwZXRlcnRvZC5vcmcACgkQJIFAPaXwkftHSgf6Am5d698B0LfgloozrwuLKk// Az5xipGOGowEPKdlY26VMcQvFs1XlCJO94uV2NZto1zL2sUdS5FJPKrfppFdd/Qd GOasAZ9S6Z4IyFEajTKp+4RldsCNEd25CQ+9apOaNgAiPbpVo2lQwtSU1kyIUYJB RU/ScdfzBhx8wkbg19bH70A9P5ZsJuKqC6QFNRcLCIyXY+XqQR1j/LcWNQf7pbXG x1+TiQGIR7z3HUIHRvOW2l81AKtMxAFo4QDwjHMqq21YUfM++PMEY4FhGv1VQh+y 45dlDhmB9WyuOl40PdP1GHL18wCPPjXsPwlKqOI/F4qXvmyDpg+6AGynbEK9qA== =7yoQ -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--