-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(l1, levm): fix hive regression when using levm (#1817)
**Motivation** <!-- Why does this pull request exist? What are its goals? --> This pull request introduces updates to the `blockchain` crate, primarily focusing on handling transactions and withdrawals when the `levm` feature is enabled. **Description** <!-- A clear and concise general description of the changes this PR introduces --> ##### Dependency Management: * Added `ethrex-levm` as an optional dependency in `Cargo.toml` to support `levm` feature. * Updated the `levm` feature to include `ethrex-levm` in `Cargo.toml`. ##### Function Modifications: * Modified various functions in `payload.rs` to support `block_cache` when the `levm` feature is enabled: * `build_payload` now initializes and passes `block_cache` through the transaction processing pipeline. * `apply_withdrawals` returns a `block_cache` and updates state based on the `levm` feature. * `fill_transactions` and its helper functions (`apply_transaction`, `apply_blob_transaction`, `apply_plain_transaction`) now accept and update `block_cache`. * `finalize_payload` updates the state root and other headers using `block_cache` when the `levm` feature is enabled. ##### Code Organization: * Added conditional imports for `levm` feature in `payload.rs` to ensure compatibility and proper functionality. <!-- Link to issues: Resolves #111, Resolves #222 --> Closes #1777 --------- Co-authored-by: Tomas Fabrizio Orsi <[email protected]> Co-authored-by: Ivan Litteri <[email protected]>
- Loading branch information
1 parent
3238675
commit 9126548
Showing
2 changed files
with
205 additions
and
45 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
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