Skip to content

Conversation

@diegoximenes
Copy link
Contributor

@diegoximenes diegoximenes commented Nov 10, 2025

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.

@github-actions
Copy link

github-actions bot commented Nov 10, 2025

❌ 162 Tests Failed:

Tests completed Failed Passed Skipped
4456 162 4294 0
View the top 3 failed tests by shortest run time
TestBatchPosterParallel
Stack Traces | -0.000s run time
=== RUN   TestBatchPosterParallel
=== PAUSE TestBatchPosterParallel
TestDimLogNestedCall
Stack Traces | -0.000s run time
=== RUN   TestDimLogNestedCall
INFO [12-22|20:50:45.531] New Key                                  name=Owner          Address=0x26E554a8acF9003b83495c7f45F06edCB803d4e3
INFO [12-22|20:50:45.531] New Key                                  name=Faucet         Address=0xaF24Ca6c2831f4d4F629418b50C227DF0885613A
WARN [12-22|20:50:45.531] invalid test database engine flag; using default provided= default=in-memory
DEBUG[12-22|20:50:45.531] test database scheme                     testDatabaseEngine=in-memory
WARN [12-22|20:50:45.531] invalid test database engine flag; using default provided= default=in-memory
DEBUG[12-22|20:50:45.531] test database scheme                     testDatabaseEngine=in-memory
WARN [12-22|20:50:45.531] Sequencer ReadFromTxQueueTimeout is higher than MaxBlockSpeed ReadFromTxQueueTimeout=1s MaxBlockSpeed=10ms
WARN [12-22|20:50:45.531] Sequencer ReadFromTxQueueTimeout is higher than MaxBlockSpeed ReadFromTxQueueTimeout=1s MaxBlockSpeed=10ms
WARN [12-22|20:50:45.531] invalid test database engine flag; using default provided= default=in-memory
DEBUG[12-22|20:50:45.531] test database scheme                     testDatabaseEngine=in-memory
=== PAUSE TestDimLogNestedCall
TestFinalityDataPushedFromConsensusToExecution
Stack Traces | -0.000s run time
=== RUN   TestFinalityDataPushedFromConsensusToExecution
INFO [12-22|20:50:45.515] New Key                                  name=Owner          Address=0x26E554a8acF9003b83495c7f45F06edCB803d4e3
INFO [12-22|20:50:45.515] New Key                                  name=Faucet         Address=0xaF24Ca6c2831f4d4F629418b50C227DF0885613A
WARN [12-22|20:50:45.515] invalid test database engine flag; using default provided= default=in-memory
DEBUG[12-22|20:50:45.515] test database scheme                     testDatabaseEngine=in-memory
WARN [12-22|20:50:45.515] invalid test database engine flag; using default provided= default=in-memory
DEBUG[12-22|20:50:45.515] test database scheme                     testDatabaseEngine=in-memory
WARN [12-22|20:50:45.515] Sequencer ReadFromTxQueueTimeout is higher than MaxBlockSpeed ReadFromTxQueueTimeout=1s MaxBlockSpeed=10ms
WARN [12-22|20:50:45.515] Sequencer ReadFromTxQueueTimeout is higher than MaxBlockSpeed ReadFromTxQueueTimeout=1s MaxBlockSpeed=10ms
WARN [12-22|20:50:45.515] invalid test database engine flag; using default provided= default=in-memory
DEBUG[12-22|20:50:45.515] test database scheme                     testDatabaseEngine=in-memory
=== PAUSE TestFinalityDataPushedFromConsensusToExecution

📣 Thoughts on this report? Let Codecov know! | Powered by Codecov

@diegoximenes diegoximenes marked this pull request as ready for review November 10, 2025 19:39
@diegoximenes diegoximenes requested a review from tsahee November 10, 2025 19:39
@diegoximenes diegoximenes assigned diegoximenes and unassigned tsahee Nov 11, 2025
@diegoximenes diegoximenes force-pushed the duplicate_nodeinterface branch 2 times, most recently from 4cef0cf to 7346333 Compare November 11, 2025 23:15
@diegoximenes diegoximenes assigned tsahee and unassigned diegoximenes Nov 11, 2025
@diegoximenes diegoximenes force-pushed the duplicate_nodeinterface branch from 7346333 to aa722d0 Compare November 12, 2025 12:57
@diegoximenes diegoximenes requested a review from tsahee November 12, 2025 15:04
@tsahee tsahee assigned diegoximenes and unassigned tsahee Nov 14, 2025
@diegoximenes diegoximenes force-pushed the duplicate_nodeinterface branch from 98ae92e to f268cb6 Compare November 17, 2025 12:51
@codecov
Copy link

codecov bot commented Nov 17, 2025

Codecov Report

❌ Patch coverage is 16.84211% with 79 lines in your changes missing coverage. Please review.
✅ Project coverage is 31.50%. Comparing base (1f915ab) to head (86cf460).

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     

@diegoximenes diegoximenes assigned tsahee and unassigned diegoximenes Nov 17, 2025
@diegoximenes diegoximenes requested a review from tsahee November 17, 2025 16:14
@diegoximenes diegoximenes force-pushed the duplicate_nodeinterface branch 2 times, most recently from 302d17b to cf36a43 Compare November 18, 2025 17:01
@tsahee tsahee assigned MishkaRogachev and unassigned tsahee Nov 26, 2025
MishkaRogachev
MishkaRogachev previously approved these changes Nov 27, 2025
Copy link
Contributor

@MishkaRogachev MishkaRogachev left a 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

@diegoximenes diegoximenes force-pushed the duplicate_nodeinterface branch from 6cf4e97 to 8e8a6bd Compare December 15, 2025 12:26
@diegoximenes diegoximenes assigned diegoximenes and unassigned tsahee Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants