Skip to content

Conversation

malik672
Copy link
Contributor

@malik672 malik672 commented Aug 2, 2025

would call it optimize but doubt this check is hardly ever hit tbh

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

actually, let's just convert this to a debug_assert instead

we did the same for the pending pool, and these checks are mostly safeguards but since this is in the hotpath we should just make this a debug_assert

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Aug 2, 2025
@malik672
Copy link
Contributor Author

malik672 commented Aug 2, 2025

okay, what's the command for the linter ?

@malik672
Copy link
Contributor Author

malik672 commented Aug 2, 2025

actually, let's just convert this to a debug_assert instead

we did the same for the pending pool, and these checks are mostly safeguards but since this is in the hotpath we should just make this a debug_assert

can the contains() function be removed

@github-actions github-actions bot added the S-stale This issue/PR is stale and will close with no further activity label Aug 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-stale This issue/PR is stale and will close with no further activity
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants