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 typo in PendingTxCache #16417

Merged
merged 1 commit into from
Sep 25, 2023
Merged

fix typo in PendingTxCache #16417

merged 1 commit into from
Sep 25, 2023

Conversation

arvidn
Copy link
Contributor

@arvidn arvidn commented Sep 25, 2023

when evicting the last MempoolItem of an assert-height level. add test coverage, we pop() from the SortedDict. This fails unconditionally because we're not passing in the required key argument.

The intention was to call popitem(), which pops the last item.

Kyle discovered this while experimenting with new linting.

@arvidn arvidn requested a review from altendky September 25, 2023 15:55
@arvidn arvidn requested a review from a team as a code owner September 25, 2023 15:55
@arvidn arvidn added the Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog label Sep 25, 2023
@arvidn arvidn requested a review from wjblanke September 25, 2023 16:27
@arvidn arvidn closed this Sep 25, 2023
@arvidn arvidn reopened this Sep 25, 2023
Copy link
Contributor

@wjblanke wjblanke left a comment

Choose a reason for hiding this comment

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

aok!

@arvidn arvidn added the ready_to_merge Submitter and reviewers think this is ready label Sep 25, 2023
@wallentx wallentx merged commit fb2a939 into release/2.1.0 Sep 25, 2023
@wallentx wallentx deleted the pending-cache-fix branch September 25, 2023 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog ready_to_merge Submitter and reviewers think this is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants