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

Use geth's eth API instead of ethclient on missing blocks for getHeaderByHash #181

Merged
merged 1 commit into from
Jul 20, 2022

Conversation

prathamesh0
Copy link
Contributor

Part of #180

  • Use geth's eth API instead of ethclient on missing blocks for getHeaderByHash
    • To maintain compatibility with geth's eth API, GetHeaderByHash() is required to include totalDifficulty in the result
    • ethclient's HeaderByHash method returns just the header object which doesn't have the totalDifficulty
    • Since geth's getHeaderByHash API implementation includes totalDifficulty in the result, it is not required to be fetched separately

@prathamesh0 prathamesh0 requested a review from ashwinphatak July 19, 2022 15:03
@prathamesh0 prathamesh0 self-assigned this Jul 19, 2022
@ashwinphatak ashwinphatak merged commit ba01123 into sharding Jul 20, 2022
@ashwinphatak ashwinphatak deleted the pm-change-getheaderbyhash branch July 20, 2022 04:04
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

Successfully merging this pull request may close these issues.

2 participants