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 1Yp874-0007c5-MC for bitcoin-development@lists.sourceforge.net; Mon, 04 May 2015 04:36:14 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of petertodd.org designates 62.13.149.77 as permitted sender) client-ip=62.13.149.77; envelope-from=pete@petertodd.org; helo=outmail149077.authsmtp.com; Received: from outmail149077.authsmtp.com ([62.13.149.77]) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1Yp872-0002kn-TS for bitcoin-development@lists.sourceforge.net; Mon, 04 May 2015 04:36:14 +0000 Received: from mail-c237.authsmtp.com (mail-c237.authsmtp.com [62.13.128.237]) by punt15.authsmtp.com (8.14.2/8.14.2/) with ESMTP id t444a61j079633 for ; Mon, 4 May 2015 05:36:06 +0100 (BST) Received: from savin.petertodd.org (75-119-251-161.dsl.teksavvy.com [75.119.251.161]) (authenticated bits=128) by mail.authsmtp.com (8.14.2/8.14.2/) with ESMTP id t444a2EH025368 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 4 May 2015 05:36:05 +0100 (BST) Date: Mon, 4 May 2015 00:36:01 -0400 From: Peter Todd To: bitcoin-development@lists.sourceforge.net Message-ID: <20150504043601.GA14728@savin.petertodd.org> References: <20150212064719.GA6563@savin.petertodd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline In-Reply-To: <20150212064719.GA6563@savin.petertodd.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Server-Quench: 13ab71c2-f217-11e4-9f74-002590a135d3 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCd2Yg0TA1ZNQRgX IjsJECJaVQIpKltL GxAVJwpGK10IU0Fd P1hXKl1LNVAaWXld WiVPGEoXDxgzCjYj NEgGOBsDNw4AXwF1 LRkAXVBSFQB4ARkL BRgUUhw8cABYeX95 e0RnX25aWkVlcE56 XU8aUWkCYTZiHRgf UkVbcQsacQJNdhcL a1MuBnQMMmcaMHhh QEpqZj1teGRRd3gQ GllXcANKSB9QQzJn UTYPAn01EEkITj4+ ZxsoYkQRBEIYOUh3 O0pkV18VexEVEEV0 Hl1GBy5fb3IGXSdj E1scBBZYSVUA X-Authentic-SMTP: 61633532353630.1024:706 X-AuthFastPath: 0 (Was 255) X-AuthSMTP-Origin: 75.119.251.161/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: 1Yp872-0002kn-TS Subject: [Bitcoin-development] New release of replace-by-fee for Bitcoin Core v0.10.1 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: Mon, 04 May 2015 04:36:14 -0000 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable My replace-by-fee patch is now available for the v0.10.1 release: https://github.com/petertodd/bitcoin/tree/replace-by-fee-v0.10.1 No new features in this version; this is simply a rebase for the Bitcoin Core v0.10.1 release. (there weren't even any merge conflicts) As with the Bitcoin Core v0.10.1, it's recommended to upgrade. The following text is the copied verbatim from the previous release: What's replace-by-fee? ---------------------- Currently most Bitcoin nodes accept the first transaction they see spending an output to the mempool; all later transactions are rejected. Replace-by-fee changes this behavior to accept the transaction paying the highest fee, both absolutely, and in terms of fee-per-KB. Replaced children are also considered - a chain of transactions is only replaced if the replacement has a higher fee than the sum of all replaced transactions. Doing this aligns standard node behavior with miner incentives: earn the most amount of money per block. It also makes for a more efficient transaction fee marketplace, as transactions that are "stuck" due to bad fee estimates can be "unstuck" by double-spending them with higher paying versions of themselves. With scorched-earth techniques=E2=81=B5 it g= ives a path to making zeroconf transactions economically secure by relying on economic incentives, rather than "honesty" and alturism, in the same way Bitcoin mining itself relies on incentives rather than "honesty" and alturism. Finally for miners adopting replace-by-fee avoids the development of an ecosystem that relies heavily on large miners punishing smaller ones for misbehavior, as seen in Harding's proposal=E2=81=B6 that miners collectivel= y 51% attack miners who include doublespends in their blocks - an unavoidable consequence of imperfect p2p networking in a decentralized system - or even Hearn's proposal=E2=81=B7 that a majority of miners be able to vote to confiscate the earnings of the minority and redistribute them at will. Installation ------------ Once you've compiled the replace-by-fee-v0.10.1 branch just run your node normally. With -debug logging enabled, you'll see messages like the following in your ~/.bitcoin/debug.log indicating your node is replacing transactions with higher-fee paying double-spends: 2015-02-12 05:45:20 replacing tx ca07cc2a5eaf55ab13be7ed7d7526cb9d30308= 6f116127608e455122263f93ea with c23973c08d71cdadf3a47bae45566053d364e77d217= 47ae7a1b66bf1dffe80ea for 0.00798 BTC additional fees, -1033 delta bytes Additionally you can tell if you are connected to other replace-by-fee nodes, or Bitcoin XT nodes, by examining the service bits advertised by your peers: $ bitcoin-cli getpeerinfo | grep services | egrep '((0000000000000003)|= (0000000004000001))' "services" : "0000000000000003", "services" : "0000000004000001", "services" : "0000000004000001", "services" : "0000000000000003", "services" : "0000000004000001", "services" : "0000000004000001", "services" : "0000000000000003", "services" : "0000000000000003", Replace-by-fee nodes advertise service bit 26 from the experimental use range; Bitcoin XT nodes advertise service bit 1 for their getutxos support. The code sets aside a certain number of outgoing and incoming slots just for double-spend relaying nodes, so as long as everything is working you're node should be connected to like-minded nodes a within 30 minutes or so of starting up. If you *don't* want to advertise the fact that you are running a replace-by-fee node, just checkout a slightly earlier commit in git; the actual mempool changes are separate from the preferential peering commits. You can then connect directly to a replace-by-fee node using the -addnode command line flag. 1) https://github.com/bitcoinxt/bitcoinxt 2) https://github.com/bitcoin/bitcoin/pull/3883 3) https://github.com/bitcoin/bitcoin/pull/3883#issuecomment-45543370 4) https://github.com/luke-jr/bitcoin/tree/0.10.x-ljrP 5) http://www.mail-archive.com/bitcoin-development%40lists.sourceforge.net/= msg05211.html 6) http://www.mail-archive.com/bitcoin-development@lists.sourceforge.net/ms= g06970.html 7) http://www.mail-archive.com/bitcoin-development%40lists.sourceforge.net/= msg04972.html --=20 'peter'[:-1]@petertodd.org 0000000000000000059a3dd65f0e5ffb8fdf316d6f31921fefcf0ef726120be9 --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQGrBAEBCACVBQJVRvctXhSAAAAAABUAQGJsb2NraGFzaEBiaXRjb2luLm9yZzAw MDAwMDAwMDAwMDAwMDAwNTlhM2RkNjVmMGU1ZmZiOGZkZjMxNmQ2ZjMxOTIxZmVm Y2YwZWY3MjYxMjBiZTkvFIAAAAAAFQARcGthLWFkZHJlc3NAZ251cGcub3JncGV0 ZUBwZXRlcnRvZC5vcmcACgkQJIFAPaXwkfut6wf/cNx5/HyPZ1dA/b4se57MrXKA RIkFtOLih6ciPdgwQOPSgW9oDWNMhk4kgVNXISlOLadkCbW7EPX0Dh5qjyJR05eW JUX/r4BoaiPOcuBbyajv1PfhjxpLLXLjPo+lt3B0jJSxgmDnKR03p/i9U4uNNARD QlvJmObcFYk1VLBehptrwB/xqrjfAMSSBcdG6MzMvURj1kkNvrsS/G0GH/hSCJfg QC61/UGY+0MR9FpLoQjb671y0r2UHtYQ2Wy11SXw0lDVav1xKKs5oZ+dNGeF8CVP rtvAmwfgm+Pq8JLZSAsFCVATFbocYogk64GeK2UiCeXiJOTEg29YeLp2kehgxQ== =5ys6 -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF--