-
Notifications
You must be signed in to change notification settings - Fork 491
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 #517
rpc, ethclient: cater 'finalized' and 'safe' blocks in ethclient #517
Conversation
Codecov ReportBase: 56.80% // Head: 56.73% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## v0.2.18-candidate #517 +/- ##
=====================================================
- Coverage 56.80% 56.73% -0.08%
=====================================================
Files 578 578
Lines 68307 68319 +12
=====================================================
- Hits 38805 38761 -44
- Misses 26154 26208 +54
- Partials 3348 3350 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
* rpc: add finalized and safe block types * ethclient: honour safe and finalized block requests * fix: remove BlockByNumberWithoutTx function
… (#523) * rpc: add finalized and safe block types * ethclient: honour safe and finalized block requests * fix: remove BlockByNumberWithoutTx function
…icnetwork#517) (maticnetwork#523) * rpc: add finalized and safe block types * ethclient: honour safe and finalized block requests * fix: remove BlockByNumberWithoutTx function
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.