<oembed><type>rich</type><version>1.0</version><author_name>npub1ghl954l59wm5pnv8j2y0ymmp6dt70kx2037e06wavfut7gjh68hqdgc6pd</author_name><author_url>https://nostr.ae/npub1ghl954l59wm5pnv8j2y0ymmp6dt70kx2037e06wavfut7gjh68hqdgc6pd</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2018-01-23&#xA;📝 Original message:Another way to limit abuse would be to have the fee *rate* be required to&#xA;increase, which is kind of the spirit of RBF, applied to this situation.&#xA;&#xA;That is to say, if you wished to replace transactions A and B with C which&#xA;spends the same inputs as A and B, then the following must be true before C&#xA;will be relayed:&#xA;&#xA;(Fee_A + Fee_B) / (Weight_A + Weight_B) &lt; Fee_C / Weight_C&#xA;&#xA;On Tue, Jan 23, 2018 at 11:31 AM, Rhavar via bitcoin-dev &lt;&#xA;bitcoin-dev at lists.linuxfoundation.org&gt; wrote:&#xA;&#xA;&gt; Getting back on topic:&#xA;&gt;&#xA;&gt;&#xA;&gt; It would definitely introduce DoS vectors by making it much cheaper to use&#xA;&gt; relay bandwidth.&#xA;&gt;&#xA;&gt;&#xA;&gt; I think I&#39;m missing something, as I don&#39;t really understand this DoS&#xA;&gt; vector. Relay bandwidth is already very cheap and easy to use by repeatedly&#xA;&gt; fee bumping. And it&#39;s not obvious to me that requiring an absolute higher&#xA;&gt; fee actually makes such an attack more expensive.&#xA;&gt;&#xA;&gt; I can see that my &#34;proposed&#34; change would make it cheaper to evict low-fee&#xA;&gt; transactions from other node&#39;s mempool. Maybe I&#39;m being naive, but I don&#39;t&#xA;&gt; really see why this would be such a big deal.&#xA;&gt;&#xA;&gt; But what about a compromise, and require that the absolute fee must be &gt;=&#xA;&gt; half the original fees. I know everyone hates magic values, but I think in&#xA;&gt; practice it will allow legitimate and useful use of &#34;retroactive&#xA;&gt; transaction merging&#34; without much downside.&#xA;&gt;&#xA;&gt; And really the great thing about &#34;retroactive transaction merging&#34; is just&#xA;&gt; how easy it is to implement. In fact, right now it&#39;s quite possible to do&#xA;&gt; -- but because of the &#34;higher absolute fee&#34; rule the benefits are pretty&#xA;&gt; muted (although if you can compress 2 change into 1, that&#39;s still likely&#xA;&gt; worthwhile)&#xA;&gt;&#xA;&gt;&#xA;&gt;&#xA;&gt; -Ryan&#xA;&gt;&#xA;&gt;&#xA;&gt; -------- Original Message --------&#xA;&gt; On January 22, 2018 3:00 PM, Peter Todd &lt;pete at petertodd.org&gt; wrote:&#xA;&gt;&#xA;&gt; On Mon, Jan 22, 2018 at 12:40:31PM -0500, Rhavar via bitcoin-dev wrote:&#xA;&gt;&#xA;&gt; So my half-baked idea is very simple:&#xA;&gt; Allow users to merge multiple unconfirmed transactions, stripping&#xA;&gt; extraneous inputs and change as they go.&#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&#xA;&gt; by the original transactions.&#34;&#xA;&gt; Because the size of the merged transaction is smaller than the original&#xA;&gt; transactions, unless there is a considerable feerate bump, this rule isn&#39;t&#xA;&gt; possible to observe.&#xA;&gt; I my question is: is it possible or reasonable to relax this rule? If this&#xA;&gt; rule was removed in its entirety, does it introduce any DoS vectors? Or can&#xA;&gt; it be changed to allow my use-case?&#xA;&gt;&#xA;&gt;&#xA;&gt; It would definitely introduce DoS vectors by making it much cheaper to use&#xA;&gt; relay bandwidth. You&#39;d also be able to push others&#39; txs out of the mempool.&#xA;&gt;&#xA;&gt;&#xA;&gt; ------------------------------&#xA;&gt;&#xA;&gt; Full backstory: I have been trying to use bip125 (Opt-in Full&#xA;&gt; Replace-by-Fee) to do &#34;transaction merging&#34; on the fly. Let&#39;s say that I&#xA;&gt; owe John 1 bitcoin, and have promised to pay him immediately: Instead of&#xA;&gt; creating a whole new transaction if I have an in-flight (unconfirmed)&#xA;&gt; transaction, I can follow the rules of bip125 to create a replacement that&#xA;&gt; accomplishes this goal.&#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&#xA;&gt; without difficulty.&#xA;&gt; However, the real problem is tracking the mess. Consider this sequence of&#xA;&gt; events:&#xA;&gt;&#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; One possible solution is to only consider a transaction &#34;replaceable&#34; if&#xA;&gt; it has change, so if the original transaction confirms -- payments can&#xA;&gt; immediately be made that source the change, and provide safety in a reorg.&#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;&gt;&#xA;&gt;&#xA;&gt; Most transactions don&#39;t have change?! Under what circumstance? For most&#xA;&gt; use-cases the reverse is true: almost all all transactions have change,&#xA;&gt; because&#xA;&gt; it&#39;s rare for the inputs to exactly math the requested payment.&#xA;&gt;&#xA;&gt; https://petertodd.org &#39;peter&#39;[:-1]@petertodd.org&#xA;&gt;&#xA;&gt;&#xA;&gt;&#xA;&gt; _______________________________________________&#xA;&gt; bitcoin-dev mailing list&#xA;&gt; bitcoin-dev at lists.linuxfoundation.org&#xA;&gt; https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&#xA;&gt;&#xA;&gt;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20180123/bded9fb7/attachment.html&gt;</html></oembed>