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: Limit max vote double spends exactly. #1596

Merged
merged 1 commit into from Feb 8, 2019

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Feb 4, 2019

This requires #1595.

This modifies the check which limits the maximum allowed votes double spending the same ticket to exactly the specified constant instead of one more.

It also adds tests for the max vote double spend handling to both ensure they are accepted up until the max, rejected thereafter, and that removing votes allows them to be accepted again.

@davecgh davecgh added this to the 1.5.0 milestone Feb 4, 2019
mempool/mempool_test.go Outdated Show resolved Hide resolved
This modifies the check which limits the maximum allowed votes double
spending the same ticket to exactly the specified constant instead of
one more.

It also adds tests for the max vote double spend handling to both ensure
they are accepted up until the max, rejected thereafter, and that
removing votes allows them to be accepted again.
@davecgh davecgh merged commit 98f633d into decred:master Feb 8, 2019
@davecgh davecgh deleted the mempool_max_double_spends branch February 8, 2019 10:52
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.

None yet

3 participants