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

Insert actual emptyRoot where not applicable #2665

Open
Tracked by #2380
georgi-l95 opened this issue Jul 3, 2024 · 0 comments
Open
Tracked by #2380

Insert actual emptyRoot where not applicable #2665

georgi-l95 opened this issue Jul 3, 2024 · 0 comments
Labels
dev tools Features enabling dev tool integration enhancement New feature or request

Comments

@georgi-l95
Copy link
Collaborator

georgi-l95 commented Jul 3, 2024

Problem

Currentlty in our implementation of Block, where we don't know the actual trie root, we are ruturning some random value or 0x. This is not correct as some tools might need this information or at least require this to be in the correct format.

Solution

We can easly implement ethereum tree library, like this https://www.npmjs.com/package/@ethereumjs/trie. Using it we can define new empty trie and either populate or return actual emtpy root.

@georgi-l95 georgi-l95 added enhancement New feature or request dev tools Features enabling dev tool integration labels Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev tools Features enabling dev tool integration enhancement New feature or request
Projects
Status: Sprint Backlog
Development

No branches or pull requests

1 participant