<oembed><type>rich</type><version>1.0</version><author_name>npub1m230cem2yh3mtdzkg32qhj73uytgkyg5ylxsu083n3tpjnajxx4qqa2np2</author_name><author_url>https://nostr.ae/npub1m230cem2yh3mtdzkg32qhj73uytgkyg5ylxsu083n3tpjnajxx4qqa2np2</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2018-01-22&#xA;📝 Original message:On Mon, Jan 22, 2018 at 12:40:31PM -0500, Rhavar via bitcoin-dev wrote:&#xA;&gt; So my half-baked idea is very simple:&#xA;&gt; &#xA;&gt; Allow users to merge multiple unconfirmed transactions, stripping extraneous inputs and change as they go.&#xA;&gt; &#xA;&gt; This is currently not possible because of the bip125 rule:&#xA;&gt; &#34;The replacement transaction pays an absolute fee of at least the sum paid by the original transactions.&#34;&#xA;&gt; &#xA;&gt; Because the size of the merged transaction is smaller than the original transactions, unless there is a considerable feerate bump, this rule isn&#39;t possible to observe.&#xA;&gt; &#xA;&gt; I my question is: is it possible or reasonable to relax this rule? If this rule was removed in its entirety, does it introduce any DoS vectors? Or can it be changed to allow my use-case?&#xA;&#xA;It would definitely introduce DoS vectors by making it much cheaper to use&#xA;relay bandwidth. You&#39;d also be able to push others&#39; txs out of the mempool.&#xA;&#xA;&gt; ---&#xA;&gt; Full backstory: I have been trying to use bip125 (Opt-in Full Replace-by-Fee) to do &#34;transaction merging&#34; on the fly. Let&#39;s say that I owe John 1 bitcoin, and have promised to pay him immediately: Instead of creating a whole new transaction if I have an in-flight (unconfirmed) transaction, I can follow the rules of bip125 to create a replacement that accomplishes this goal.&#xA;&gt; &#xA;&gt; From a &#34;coin selection&#34; point of view, this was significantly easier than&#xA;&gt; I had anticipated. I was able to encode the rules in my linear model and&#xA;&gt; feed in all my unspent and in-flight transactions and it can solve it without difficulty.&#xA;&gt; &#xA;&gt; However, the real problem is tracking the mess. Consider this sequence of events:&#xA;&gt; 1) I have unconfirmed transaction A&#xA;&gt; 2) I replace it with B, which pays John 1 BTC&#xA;&gt; 3) Transaction A gets confirmed&#xA;&gt; &#xA;&gt; So now I still owe John 1 BTC, however it&#39;s not immediately clear if&#xA;&gt; it&#39;s safe to send to him without waiting $n transactions. However even&#xA;&gt; for a small $n, this breaks my promise to pay him immediately.&#xA;&gt;&#xA;&gt; One possible solution is to only consider a transaction &#34;replaceable&#34; if it has change, so if the original transaction confirms -- payments can immediately be made that source the change, and provide safety in a reorg.&#xA;&gt; &#xA;&gt; However, this will only work &lt;50% of the time for me (most transactions&#xA;&gt; don&#39;t have change) and opens a pandora&#39;s box of complexity.&#xA;&#xA;Most transactions don&#39;t have change?! Under what circumstance? For most&#xA;use-cases the reverse is true: almost all all transactions have change, because&#xA;it&#39;s rare for the inputs to exactly math the requested payment.&#xA;&#xA;-- &#xA;https://petertodd.org &#39;peter&#39;[:-1]@petertodd.org&#xA;-------------- next part --------------&#xA;A non-text attachment was scrubbed...&#xA;Name: signature.asc&#xA;Type: application/pgp-signature&#xA;Size: 455 bytes&#xA;Desc: Digital signature&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20180122/84f99d15/attachment-0001.sig&gt;</html></oembed>