Getting back on topic:It would definitely introduce DoS vectors by making it much cheaper to userelay bandwidth.I think I'm missing something, as I don't really understand this DoS vector. Relay bandwidth is already very cheap and easy to use by repeatedly fee bumping. And it's not obvious to me that requiring an absolute higher fee actually makes such an attack more expensive.I can see that my "proposed" change would make it cheaper to evict low-fee transactions from other node's mempool. Maybe I'm being naive, but I don't really see why this would be such a big deal.But what about a compromise, and require that the absolute fee must be >= half the original fees. I know everyone hates magic values, but I think in practice it will allow legitimate and useful use of "retroactive transaction merging" without much downside.And really the great thing about "retroactive transaction merging" is just how easy it is to implement. In fact, right now it's quite possible to do -- but because of the "higher absolute fee" rule the benefits are pretty muted (although if you can compress 2 change into 1, that's still likely worthwhile)-Ryan-------- Original Message --------On January 22, 2018 3:00 PM, Peter Todd <pete@petertodd.org> wrote:On Mon, Jan 22, 2018 at 12:40:31PM -0500, Rhavar via bitcoin-dev wrote:So my half-baked idea is very simple:Allow users to merge multiple unconfirmed transactions, stripping extraneous inputs and change as they go.This is currently not possible because of the bip125 rule:"The replacement transaction pays an absolute fee of at least the sum paid by the original transactions."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.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?It would definitely introduce DoS vectors by making it much cheaper to userelay bandwidth. You'd also be able to push others' txs out of the mempool.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.I had anticipated. I was able to encode the rules in my linear model andfeed in all my unspent and in-flight transactions and it can solve it without difficulty.