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

Make eth_getHeaderByHash API work for missing blocks with snap synced node #180

Closed
prathamesh0 opened this issue Jul 19, 2022 · 0 comments
Closed
Assignees

Comments

@prathamesh0
Copy link
Contributor

In the current eth_getHeaderByHash API implementation, if the header is not present in the database, a writeStateDiffFor call is made to statediffing geth.

But when the geth node is snap synced, the writeStateDiffFor call fails for blocks below the sync height. As a result, the rpcMarshalHeader method is unable to get total difficulty from the database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant