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

refactor(tx-pool): move is_underpriced to ValidPoolTransaction impl #11938

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

tcoratger
Copy link
Contributor

  • As is_underpriced contains two ValidPoolTransaction as arguments, it seems more logical to move the function inside ValidPoolTransaction implementation.
  • The documentation is a little bit improved to explain steps because there are a lot of calculations there.
  • unwrap_or(0) is replaced by default usage
  • In if conditions, simplest assertions to check are moved first for the function to output fast is this necessary condition is not met.

@tcoratger tcoratger requested a review from mattsse as a code owner October 21, 2024 17:06
@mattsse mattsse added this pull request to the merge queue Oct 22, 2024
@mattsse mattsse added the A-tx-pool Related to the transaction mempool label Oct 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 22, 2024
@mattsse mattsse merged commit ee1260a into paradigmxyz:main Oct 23, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tx-pool Related to the transaction mempool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants