You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement transaction counts with flashblocks awareness in EoaExecutorWorker and related modules (#46)
* Implement transaction counts with flashblocks awareness in EoaExecutorWorker and related modules
- Introduced a new `TransactionCounts` struct to encapsulate both latest and preconfirmed transaction counts, enhancing support for flashblocks.
- Updated the `clean_submitted_transactions` method to utilize the new transaction counts for better transaction management.
- Refactored the `confirm_flow` method in `EoaExecutorWorker` to fetch and handle transaction counts with flashblocks support, improving accuracy in nonce management and transaction processing.
- Adjusted logic in `CleanSubmittedTransactions` to ensure proper handling of transactions based on the latest and preconfirmed counts, addressing potential issues with flashblocks propagation delays.
These changes enhance the robustness and responsiveness of transaction handling in the EOA executor.
* Refactor transaction handling in CleanSubmittedTransactions and EoaExecutorWorker
- Updated the `CleanSubmittedTransactions` implementation to directly use the `to_redis_string_with_nonce` method, improving clarity and efficiency.
- Introduced a new variable for the legacy Redis string to ensure proper removal of legacy formatted keys.
- Modified the `clean_submitted_transactions` method in `EoaExecutorWorker` to utilize `saturating_sub` for transaction counts, enhancing robustness against underflow.
These changes streamline transaction management and improve error handling in the EOA executor.
* Refactor Flashblocks transaction count handling in RpcWithBlock
- Improved the implementation of the `FlashblocksTransactionCount` trait to utilize a helper function for checking flashblocks chain IDs, enhancing code clarity and maintainability.
- Streamlined the logic for fetching transaction counts based on whether the chain supports flashblocks, ensuring efficient parallel fetching for supported chains and single fetching for others.
These changes enhance the robustness and readability of transaction count handling in the executor.
0 commit comments