-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added validateMempoolConfig to encapsulate configuration validation. • Centralized validation logic improves readability and reuse. • Replaced nested if-else statements with if checks and early returns. • Encapsulated logic in modular helper functions (getTxKey, AssertLaneLimits) to reduce code duplication. • Provided hooks to customize transaction priority (Priority) and validation logic. • Optimized Contains and Remove to avoid redundant checks by using getTxKey.
- Loading branch information
1 parent
6d07c41
commit 52f3d1c
Showing
1 changed file
with
63 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters