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

fix bug in MpoolPending message exclusion #6945

Merged
merged 1 commit into from
Jul 29, 2021
Merged

Conversation

vyzo
Copy link
Contributor

@vyzo vyzo commented Jul 29, 2021

This was discovered while reviewing the mysterious pr #4462; the intent of the code is to exclude messages that have already been included in blocks at the same height. Unfortunately, the code used ts instead of mpts rendering it effectively a noop.

This fixes the bug and adds a comment.

Note: the bug is not correctness critical, as selection is more intelleigent at picking pending messages.

Closes #4462.

@vyzo vyzo requested review from Stebalien and magik6k July 29, 2021 19:03
@vyzo vyzo requested a review from a team as a code owner July 29, 2021 19:03
@vyzo vyzo changed the title fix bug in message exclusion fix bug in MpoolPending message exclusion Jul 29, 2021
@Stebalien Stebalien merged commit f63d1b1 into master Jul 29, 2021
@Stebalien Stebalien deleted the fix/mpool-pending branch July 29, 2021 20:24
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