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

rpc, ethclient: cater 'finalized' and 'safe' blocks in ethclient (v0.3.x) #523

Merged
merged 1 commit into from
Sep 22, 2022

Conversation

manav2401
Copy link
Contributor

This PR cherry picks commits from #517 PR which was done for v0.2.18-candidate.


This PR adds new block type for "finalized and "safe" blocks to honour the post-merge API modifications.

The purpose behind this change is to consume this client in heimdall for L1 communication i.e. ethereum mainnet and goerli test network which are already following these notions.

Reference implementation from geth: ethereum/go-ethereum#24282, ethereum/go-ethereum#25165, ethereum/go-ethereum#25580.

NOTE: This by no means adds/serves "finalized" or "safe" blocks from bor.

* rpc: add finalized and safe block types

* ethclient: honour safe and finalized block requests

* fix: remove BlockByNumberWithoutTx function
@manav2401 manav2401 requested a review from a team September 22, 2022 08:05
@manav2401 manav2401 merged commit 813b74f into develop Sep 22, 2022
@manav2401 manav2401 deleted the manav/v0.2.18-cherry-pick branch September 22, 2022 08:07
cffls pushed a commit to cffls/bor that referenced this pull request Sep 29, 2022
…icnetwork#517) (maticnetwork#523)

* rpc: add finalized and safe block types

* ethclient: honour safe and finalized block requests

* fix: remove BlockByNumberWithoutTx function
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.

3 participants