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

mempool: Accept expired prune height. #3042

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jan 7, 2023

This modifies the method that prunes expired transactions to accept the current best height as opposed to looking it up internally.

While this change doesn't really have any effect in isolation, it is part of an ongoing effort to make the internal mempool state easier to reason about for correctness by removing hidden assumptions. In this particular case, it removes the reliance on the assumption that the tip of the chain has not changed as compared to what the caller expects it to be.

This modifies the method that prunes expired transactions to accept the
current best height as opposed to looking it up internally.

While this change doesn't really have any effect in isolation, it is
part of an ongoing effort to make the internal mempool state easier to
reason about for correctness by removing hidden assumptions.  In this
particular case, it removes the reliance on the assumption that the tip
of the chain has not changed as compared to what the caller expects it
to be.
@davecgh davecgh added this to the 1.8.0 milestone Jan 7, 2023
@davecgh davecgh merged commit d4affad into decred:master Jan 11, 2023
@davecgh davecgh deleted the mempool_accept_prune_expired_height branch January 11, 2023 06:39
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 this pull request may close these issues.

3 participants