-
Notifications
You must be signed in to change notification settings - Fork 106
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
Cancel all mempool download and verify tasks when a network upgrade activates #2710
Comments
Hey team! Please add your planning poker estimate with ZenHub @conradoplg @dconnolly @jvff @oxarbitrage @teor2345 @upbqdn |
our approach will depend on what we do for #2374 |
Currently Zebra:
So I think the only thing that's missing here is clearing the download and verify queue. The state send a zebra/zebrad/src/components/mempool.rs Lines 249 to 254 in 18acec6
|
Edit: actually, it seems like we're missing clearing the download & verify stream |
Motivation
When a network upgrade activates, the mempool needs to redo validation with the new consensus rules.
Design
Tasks can await network upgrade activation using
ChainTipChange::tip_change
andTipAction::Reset
:zebra/zebra-state/src/service/chain_tip.rs
Line 313 in 44ac067
The text was updated successfully, but these errors were encountered: