Skip to content

Comments

refactor(handler): eliminate code duplication in transaction validation#3243

Merged
rakita merged 4 commits intobluealloy:mainfrom
letmehateu:refactor-validate-fee
Dec 22, 2025
Merged

refactor(handler): eliminate code duplication in transaction validation#3243
rakita merged 4 commits intobluealloy:mainfrom
letmehateu:refactor-validate-fee

Conversation

@letmehateu
Copy link
Contributor

Created a helper function validate_priority_fee_for_tx to reduce code duplication. The function is used for Eip1559, Eip4844, and Eip7702 transaction types, eliminating three identical calls with the same parameters.

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 20, 2025

CodSpeed Performance Report

Merging #3243 will not alter performance

Comparing letmehateu:refactor-validate-fee (c007cf3) with main (ba5bb55)

Summary

✅ 173 untouched

Comment on lines 66 to 67
fn validate_priority_fee_for_tx<CTX: ContextTr>(
context: &CTX,
Copy link
Member

Choose a reason for hiding this comment

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

You could do it with TX in place of CTX

Copy link
Contributor Author

@letmehateu letmehateu Dec 22, 2025

Choose a reason for hiding this comment

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

You could do it with TX in place of CTX

Changed, thank you

@rakita rakita merged commit 18bb8c0 into bluealloy:main Dec 22, 2025
31 checks passed
@github-actions github-actions bot mentioned this pull request Dec 22, 2025
@letmehateu letmehateu deleted the refactor-validate-fee branch December 22, 2025 15:52
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