{"type":"rich","version":"1.0","author_name":"npub1m230cem2yh3mtdzkg32qhj73uytgkyg5ylxsu083n3tpjnajxx4qqa2np2","author_url":"https://nostr.ae/npub1m230cem2yh3mtdzkg32qhj73uytgkyg5ylxsu083n3tpjnajxx4qqa2np2","provider_name":"njump","provider_url":"https://nostr.ae","html":"📅 Original date posted:2018-01-22\n📝 Original message:On Mon, Jan 22, 2018 at 12:40:31PM -0500, Rhavar via bitcoin-dev wrote:\n\u003e So my half-baked idea is very simple:\n\u003e \n\u003e Allow users to merge multiple unconfirmed transactions, stripping extraneous inputs and change as they go.\n\u003e \n\u003e This is currently not possible because of the bip125 rule:\n\u003e \"The replacement transaction pays an absolute fee of at least the sum paid by the original transactions.\"\n\u003e \n\u003e Because the size of the merged transaction is smaller than the original transactions, unless there is a considerable feerate bump, this rule isn't possible to observe.\n\u003e \n\u003e 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?\n\nIt would definitely introduce DoS vectors by making it much cheaper to use\nrelay bandwidth. You'd also be able to push others' txs out of the mempool.\n\n\u003e ---\n\u003e Full backstory: I have been trying to use bip125 (Opt-in Full Replace-by-Fee) to do \"transaction merging\" on the fly. Let'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.\n\u003e \n\u003e From a \"coin selection\" point of view, this was significantly easier than\n\u003e I had anticipated. I was able to encode the rules in my linear model and\n\u003e feed in all my unspent and in-flight transactions and it can solve it without difficulty.\n\u003e \n\u003e However, the real problem is tracking the mess. Consider this sequence of events:\n\u003e 1) I have unconfirmed transaction A\n\u003e 2) I replace it with B, which pays John 1 BTC\n\u003e 3) Transaction A gets confirmed\n\u003e \n\u003e So now I still owe John 1 BTC, however it's not immediately clear if\n\u003e it's safe to send to him without waiting $n transactions. However even\n\u003e for a small $n, this breaks my promise to pay him immediately.\n\u003e\n\u003e One possible solution is to only consider a transaction \"replaceable\" 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.\n\u003e \n\u003e However, this will only work \u003c50% of the time for me (most transactions\n\u003e don't have change) and opens a pandora's box of complexity.\n\nMost transactions don't have change?! Under what circumstance? For most\nuse-cases the reverse is true: almost all all transactions have change, because\nit's rare for the inputs to exactly math the requested payment.\n\n-- \nhttps://petertodd.org 'peter'[:-1]@petertodd.org\n-------------- next part --------------\nA non-text attachment was scrubbed...\nName: signature.asc\nType: application/pgp-signature\nSize: 455 bytes\nDesc: Digital signature\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20180122/84f99d15/attachment-0001.sig\u003e"}
