Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(mpt): Simplify TrieDB #198

Merged
merged 1 commit into from
Jun 4, 2024
Merged

feat(mpt): Simplify TrieDB #198

merged 1 commit into from
Jun 4, 2024

Commits on Jun 4, 2024

  1. feat(mpt): Simplify TrieDB

    Simplifies `TrieDB` by assuming it will be wrapped with
    [`revm::State`](https://github.com/bluealloy/revm/blob/fadf6fbe43a3022c1406c0d8ee062a83e951d4d3/crates/revm/src/db/states/state.rs#L29).
    
    The `State` struct in `revm` is better for our usecase, since it allows
    for merging a `BundleState` after a full block's execution. The previous
    implementation had the fatal flaw having to recompute the state root
    every time the `DatabaseCommit` trait implementation was invoked, which
    was not suitable.
    
    Examples of usage may be found within the rustdoc for `TrieDB`.
    clabby committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    1396076 View commit details
    Browse the repository at this point in the history