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: Make expiry pruning self contained. #1378

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jul 25, 2018

This modifies the mempool to handle pruning of expired transactions in a self-contained way so that the caller is not responsible for worrying about the specific semantics of height and expiration interplay and updates all callers in the repository accordingly.

It also adds a test which ensures the behavior is correct by creating a series of transactions with expirations, adding them just before the point at which they will expire, and then advancing the chain so that each transaction expires and thus should be pruned.

@davecgh davecgh added this to the 1.3.0 milestone Jul 25, 2018
@davecgh davecgh force-pushed the mempool_self_contained_expiry_pruning branch from bcf1cea to 6fbd4ff Compare July 25, 2018 22:39
Copy link
Member

@dajohi dajohi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok testnet2 miner

This modifies the mempool to handle pruning of expired transactions in a
self-contained way so that the caller is not responsible for worrying
about the specific semantics of height and expiration interplay and
updates all callers in the repository accordingly.

It also adds a test which ensures the behavior is correct by creating a
series of transactions with expirations, adding them just before the
point at which they will expire, and then advancing the chain so that
each transaction expires and thus should be pruned.
@davecgh davecgh force-pushed the mempool_self_contained_expiry_pruning branch from 6fbd4ff to a983886 Compare July 26, 2018 04:10
@davecgh davecgh merged commit a983886 into decred:master Jul 26, 2018
@davecgh davecgh deleted the mempool_self_contained_expiry_pruning branch July 26, 2018 04:21
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