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

Update height_expiration_txs to not grow indefinitely #2579

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

AurelienFT
Copy link
Contributor

@AurelienFT AurelienFT commented Jan 16, 2025

Linked Issues/PRs

#2564

Description

At a cost of some performance, because we now iterate over an HashSet instead of a Vec, we remove transactions from height_expiration_txs when we prune them and when they are inserted on a block which is the two cases where a transaction can be removed. Maybe we should be clearer on the code where the tx are removed and regroup the behaviour in the same place (#2580)

Checklist

  • Breaking changes are clearly marked as such in the PR description and changelog
  • New behavior is reflected in tests
  • The specification matches the implemented behavior (link update PR if changes are needed)

Before requesting review

  • I have reviewed the code myself
  • I have created follow-up issues caused by this PR and linked them here

@AurelienFT AurelienFT requested a review from a team January 16, 2025 10:42
@AurelienFT AurelienFT requested a review from rafal-ch January 16, 2025 14:03
@AurelienFT AurelienFT requested a review from rafal-ch January 20, 2025 15:53
Copy link
Contributor

@rafal-ch rafal-ch left a comment

Choose a reason for hiding this comment

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

LGTM 👍

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