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: Optimize pool double spend check. #1561

Merged
merged 2 commits into from
Jan 4, 2019
Merged

Conversation

zeoio
Copy link
Contributor

@zeoio zeoio commented Jan 3, 2019

This optimizes checkPoolDoubleSpend to check the traversal position first since it is more likely.

mempool: optimized code
Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

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

This is not following the guidelines despite checking all of the boxes.

@davecgh davecgh changed the title Update mempool.go mempool: Optimize pool double spend check. Jan 4, 2019
This optimizes the checkPoolDoubleSpend to check the traversal position first since it is more likely.
Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

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

There should only be a single commit, but I'll go ahead and approve this and squash it since the second commit is accurate.

@davecgh davecgh merged commit bc63bf4 into decred:master Jan 4, 2019
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.

2 participants