We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Mempools typically require a consistent set of transactions, which could all be mined into a single block.
In order to support this restriction, Zebra should reject transactions that:
This consensus rule applies to both block and mempool transactions, so we might want to implement it in transaction::Verifier.
transaction::Verifier
zebra-state already checks for double-spends within the same block transaction. We can move this check to transaction::Verifier.
zebra/zebra-state/src/service/check/utxo.rs
Lines 76 to 85 in b714b2b
The mempool already checks for double-spends between transactions in check_spend_conflicts:
check_spend_conflicts
zebra/zebrad/src/components/mempool/storage.rs
Lines 159 to 168 in 17f217b
The text was updated successfully, but these errors were encountered:
Hey team! Please add your planning poker estimate with ZenHub @conradoplg @dconnolly @jvff @oxarbitrage @teor2345 @upbqdn
Sorry, something went wrong.
jvff
Successfully merging a pull request may close this issue.
Motivation
Mempools typically require a consistent set of transactions, which could all be mined into a single block.
In order to support this restriction, Zebra should reject transactions that:
Specifications
This consensus rule applies to both block and mempool transactions, so we might want to implement it in
transaction::Verifier
.Design
zebra-state already checks for double-spends within the same block transaction.
We can move this check to
transaction::Verifier
.zebra/zebra-state/src/service/check/utxo.rs
Lines 76 to 85 in b714b2b
The mempool already checks for double-spends between transactions in
check_spend_conflicts
:zebra/zebrad/src/components/mempool/storage.rs
Lines 159 to 168 in 17f217b
The text was updated successfully, but these errors were encountered: