-
Notifications
You must be signed in to change notification settings - Fork 40
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
Conversation
…ckage trace_decoder
Looked at PR. LGTM |
There was a problem hiding this 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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_state_trie: &WorldT, | |
_world: &WorldT, |
} | ||
} | ||
|
||
impl World for Type2World { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job. No concerns from my side.
Closes #707
Follows #693
Obsoletes #722
Changes
Type2World
is ready for testing.TypedMpt
, and just fold it intoStateMpt
.conv_hash
module.