Skip to content
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

Send mined transaction IDs to the download and verify task for cancellation #2711

Closed
Tracked by #2309
teor2345 opened this issue Aug 31, 2021 · 1 comment · Fixed by #2786
Closed
Tracked by #2309

Send mined transaction IDs to the download and verify task for cancellation #2711

teor2345 opened this issue Aug 31, 2021 · 1 comment · Fixed by #2786
Assignees

Comments

@teor2345
Copy link
Contributor

teor2345 commented Aug 31, 2021

Motivation

Zebra needs to remove mined transaction IDs from the mempool download and verify tasks.

Design

Tasks can await tip changes using ChainTipChange::tip_change and TipAction::Grow:

pub async fn tip_change(&mut self) -> Result<TipAction, watch::error::RecvError> {

@mpguerra
Copy link
Contributor

mpguerra commented Sep 1, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants