-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider replacing mempool transactions based on the transaction fee #2781
Comments
We considered this for |
Note however that expiry is optional (the transaction creator can set (Previously, |
No longer? That's our current plan (rather, cavalierly blow away mempool state on shutdown/restart, on network upgrade, if we need to catch up with chain tip, etc) |
Sorry I'm mistaken, |
Zebra can afford to blow away the mempool because it eagerly crawls peer mempools, it shares newly verified transactions with peers, and it's connected to lots of peers. So there's very little risk of transaction loss. |
I've marked this ticket as optional, based on |
Motivation
As of #2765, mempool transactions are rejected if they spend a UTXO that's already spent or a nullifier that's already revealed by another transaction in the mempool. However, this prevents a user from replacing a transaction with another one by setting a higher transaction fee. We should consider adding support for replacing a transaction based on the transaction fee.
There might be more than one conflict when adding a transaction, so a more complete version might be to build two sets of transactions and then select the set that has a higher overall fee (or the set that provides a larger profit to a miner).
Specifications
Zcash implemented ZIP-203 (transaction expiry heights) instead of fee replacement.
So we don't need to implement this ticket, and we might decide not to do it at all.
(
zcashd
decided not to do it.)Designs
Related Work
The text was updated successfully, but these errors were encountered: