Skip to content

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

Merged
manav2401 merged 1 commit into
developfrom
manav/v0.2.18-cherry-pick
Sep 22, 2022
Merged

rpc, ethclient: cater 'finalized' and 'safe' blocks in ethclient (v0.3.x)#523
manav2401 merged 1 commit into
developfrom
manav/v0.2.18-cherry-pick

Conversation

@manav2401

Copy link
Copy Markdown
Member

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
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