Latest Results
refactor(handler): polish TxValidator API and add preset constructors
Improvements to the TxValidator module for better usability and performance:
## API Improvements
- Add `Copy` derive to TxValidator and CallerFee for efficient passing
- Add preset constructors: `for_deposit()`, `for_tx_pool()`, `for_block_builder()`
- Add composite `GAS_FEES` flag for all gas/fee related checks
- Add missing skip methods: `skip_tx_gas_limit_check()`, `skip_blob_fee_check()`,
`skip_auth_list_check()`, `skip_max_initcode_size_check()`, `skip_caller_checks()`,
`skip_gas_fee_checks()`
- Add missing enable methods for all checks: `enable_tx_gas_limit_check()`,
`enable_base_fee_check()`, `enable_priority_fee_check()`, `enable_blob_fee_check()`,
`enable_auth_list_check()`, `enable_block_gas_limit_check()`,
`enable_max_initcode_size_check()`, `enable_eip3607_check()`, `enable_eip7623_check()`,
`enable_header_check()`, `enable_all()`, `enable_caller_checks()`
- Add query methods: `has_any_checks()`, `has_all_checks()`, `enabled_checks()`
## Performance Improvements
- Add `#[inline]` annotations to all builder methods and validation hot paths
- Derive `Copy` to avoid unnecessary cloning
## Tests
- Add tests for preset constructors
- Add tests for composite skip/enable methods
- Add tests for query methods
- Add test verifying TxValidator is Copy Active Branches
#3399+4%
#3400-4%
#3375+7%
© 2026 CodSpeed Technology