Post-clustermempool package RBF: per-chunk processing

Post-clustermempool package RBF: per-chunk processing

Original Postby instagibbs

Posted on: November 22, 2023 17:03 UTC

The process of deduplication in package transactions (PKG) involves the removal of any transaction that is already present in the receiver's mempool.

This step prompts a contemplation on whether it would be practical to treat transactions with the same transaction ID but different witness transaction IDs as replace-by-fee (RBF) conflicts. Currently, when such a scenario arises, the new transaction is discarded, and the existing witness transaction ID in the mempool is reported. The proposal suggests an approach for handling post-cluster mempool conflicts by comparing the sizes of the conflicting transactions. If the incoming transaction is larger than the one already present, it should be deduplicated with the smaller one. Conversely, if the incoming transaction is smaller and meets the new chunk's RBF rules, then replacing the witness transaction ID seems to be a natural solution without necessitating free relay. This method also has the advantage of favoring smaller witnesses for relay purposes, which could mitigate the effects of witness stuffing, such as during a coinjoin, by preferring transactions with smaller witnesses.