-
Notifications
You must be signed in to change notification settings - Fork 698
arb_getL1Confirmations and arb_findBatchContainingBlock RPC APIs in Consensus side #3985
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
base: master
Are you sure you want to change the base?
Conversation
❌ 162 Tests Failed:
View the top 3 failed tests by shortest run time
📣 Thoughts on this report? Let Codecov know! | Powered by Codecov |
4cef0cf to
7346333
Compare
7346333 to
aa722d0
Compare
98ae92e to
f268cb6
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3985 +/- ##
==========================================
- Coverage 33.64% 31.50% -2.14%
==========================================
Files 453 453
Lines 55565 55594 +29
==========================================
- Hits 18693 17516 -1177
- Misses 33587 34888 +1301
+ Partials 3285 3190 -95 |
302d17b to
cf36a43
Compare
MishkaRogachev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t have much context on this part of the codebase, but the changes look clean, the structure makes sense, and the tests seem to cover the changes
6cf4e97 to
8e8a6bd
Compare
Resolves NIT-3558
Medium to long term goal is to remove GetL1Confirmations and FindBatchContainingBlock from NodeInterface.
In those methods NodeInterface relies on calling Consensus and the parent chain, introducing a circular dependency between Consensus and Execution.
For that, the first step, which is covered by this PR, is to also provide this functionality through arb_getL1Confirmations and arb_findBatchContainingBlock RPC APIs, that should be placed in the Consensus side.
This PR also adds call metrics to the respective NodeInterface methods, so we can track if those methods that will be removed at some time, are still called.