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: trait World for trace_decoder #732

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
Open

feat: trait World for trace_decoder #732

wants to merge 13 commits into from

Conversation

0xaatif
Copy link
Contributor

@0xaatif 0xaatif commented Oct 17, 2024

Closes #707

Follows #693
Obsoletes #722

Changes

  • Type2World is ready for testing.
  • Remove TypedMpt, and just fold it into StateMpt.
  • Remove the conv_hash module.

@github-actions github-actions bot added crate: trace_decoder Anything related to the trace_decoder crate. crate: zero_bin Anything related to the zero-bin subcrates. labels Oct 17, 2024
@0xaatif 0xaatif marked this pull request as ready for review October 17, 2024 20:12
@temaniarpit27
Copy link
Contributor

Looked at PR. LGTM

Copy link
Contributor

@atanmarko atanmarko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice optimization overall

fn collect_tries(
&mut self,
_block: U256,
_batch: usize,
_state_trie: &StateTrieT,
_storage: &BTreeMap<H256, StorageTrie>,
_state_trie: &WorldT,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_state_trie: &WorldT,
_world: &WorldT,

}
}

impl World for Type2World {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I find it a bit weird to have this before struct Type2World is defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate: trace_decoder Anything related to the trace_decoder crate. crate: zero_bin Anything related to the zero-bin subcrates.
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

abstract over state _and_ storage tries
3 participants