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 sequences filtering when clearing packets with CLI #4159

Merged
merged 3 commits into from
Aug 26, 2024

Conversation

ljoss17
Copy link
Contributor

@ljoss17 ljoss17 commented Aug 23, 2024

Closes: #4158

Description


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests: integration (for Hermes) or unit/mock tests (for modules).
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).
  • Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

@ljoss17 ljoss17 marked this pull request as ready for review August 23, 2024 14:16
@ljoss17 ljoss17 requested a review from romac August 23, 2024 14:16
@@ -110,10 +110,16 @@ impl<ChainA: ChainHandle, ChainB: ChainHandle> Link<ChainA, ChainB> {
sequences.retain(|seq| sequence_filter.iter().any(|range| range.contains(seq)));
}

// Retain only sequences which should not be filtered out
Copy link
Member

Choose a reason for hiding this comment

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

Don't we also need to filter in relay_ack_packet_messages_with_packet_data_query_height below?

@ljoss17 ljoss17 added this pull request to the merge queue Aug 26, 2024
Merged via the queue into master with commit 217f0b7 Aug 26, 2024
30 checks passed
@ljoss17 ljoss17 deleted the luca_joss/fix-excluded-sequences-in-clear-cli branch August 26, 2024 07:04
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.

Correctly filter out sequences when clearing packets with CLI
2 participants