Skip to content

Conversation

@bragaigor
Copy link
Contributor

@bragaigor bragaigor commented Dec 18, 2025

Rename database variable names to comply with Consensus and Execution Split in codebase. New names are consensusDb to represent Consensus DB and executionDb to represent chain DB handled by Execution layer.

Closes NIT-4200

@codecov
Copy link

codecov bot commented Dec 18, 2025

Codecov Report

❌ Patch coverage is 38.07107% with 122 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.44%. Comparing base (a5fb890) to head (2578cf9).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #4155       +/-   ##
===========================================
+ Coverage   35.10%   57.44%   +22.33%     
===========================================
  Files         453      453               
  Lines       55565    55565               
===========================================
+ Hits        19507    31919    +12412     
+ Misses      32615    18863    -13752     
- Partials     3443     4783     +1340     

@github-actions
Copy link
Contributor

github-actions bot commented Dec 18, 2025

❌ 2 Tests Failed:

Tests completed Failed Passed Skipped
4445 2 4443 0
View the top 2 failed tests by shortest run time
TestBlocksReExecutorCommitState
Stack Traces | 3.200s run time
... [CONTENT TRUNCATED: Keeping last 20 lines]
INFO [12-22|18:20:22.278]  - London:                      #0       
INFO [12-22|18:20:22.278]  - Arrow Glacier:               #0       
INFO [12-22|18:20:22.278]  - Gray Glacier:                #0       
INFO [12-22|18:20:22.278] 
INFO [12-22|18:20:22.278] Merge configured:
INFO [12-22|18:20:22.278]  - Total terminal difficulty:  0
INFO [12-22|18:20:22.278] 
INFO [12-22|18:20:22.278] Post-Merge hard forks (timestamp based):
INFO [12-22|18:20:22.278]  - Shanghai:                    @0         
INFO [12-22|18:20:22.278]  - Cancun:                      @0          blob: (target: 3, max: 6, fraction: 3338477)
INFO [12-22|18:20:22.278]  - Prague:                      @0          blob: (target: 6, max: 9, fraction: 5007716)
INFO [12-22|18:20:22.278]  - Osaka:                       @0          blob: (target: 6, max: 9, fraction: 5007716)
INFO [12-22|18:20:22.278] 
INFO [12-22|18:20:22.278] All fork specifications can be found at https://ethereum.github.io/execution-specs/src/ethereum/forks/
INFO [12-22|18:20:22.278] 
INFO [12-22|18:20:22.278] ---------------------------------------------------------------------------------------------------------------------------------------------------------
INFO [12-22|18:20:22.278] 
INFO [12-22|18:20:22.278] Loaded most recent local block           number=0   hash=8e4045..936bd5                   age=56y9mo2w
INFO [12-22|18:20:22.278] Initialized transaction indexer          range="last 2350000 blocks"
--- FAIL: TestBlocksReExecutorCommitState (3.20s)
TestArbOSVersion60
Stack Traces | 5.490s run time
... [CONTENT TRUNCATED: Keeping last 20 lines]
INFO [12-22|18:20:20.524] Writing snapshot state to disk           root=bc4975..d9ab62
INFO [12-22|18:20:20.524] Persisted trie from memory database      nodes=0   flushnodes=0 size=0.00B     flushsize=0.00B time=451ns       flushtime=0s gcnodes=0    gcsize=0.00B     gctime=0s          livenodes=0    livesize=0.00B
DEBUG[12-22|18:20:20.524] Dereferenced trie from memory database   nodes=0   size=0.00B     time=431ns       gcnodes=0    gcsize=0.00B     gctime=141ns       livenodes=0    livesize=0.00B
INFO [12-22|18:20:20.524] Blockchain stopped
TRACE[12-22|18:20:20.524] P2P networking is spinning down
DEBUG[12-22|18:20:20.524] Finality not supported, not pushing finality data to execution
WARN [12-22|18:20:20.524] Sequencer ReadFromTxQueueTimeout is higher than MaxBlockSpeed ReadFromTxQueueTimeout=1s MaxBlockSpeed=10ms
DEBUG[12-22|18:20:20.524] Executing EVM call finished              runtime="569.562µs"
DEBUG[12-22|18:20:20.524] Served eth_call                          reqid=1337 duration="607.122µs"
TRACE[12-22|18:20:20.525] Handled RPC response                     reqid=1337 duration="2.154µs"
DEBUG[12-22|18:20:20.525] Executing EVM call finished              runtime="906.831µs"
DEBUG[12-22|18:20:20.525] Served eth_call                          reqid=12   duration="962.816µs"
DEBUG[12-22|18:20:20.525] Served eth_unsubscribe                   reqid=1339 duration="12.924µs"
DEBUG[12-22|18:20:20.525] RPC server shutting down
DEBUG[12-22|18:20:20.525] Served eth_getBlockByNumber              reqid=275  duration="59.501µs"
TRACE[12-22|18:20:20.525] Handled RPC response                     reqid=1339 duration="1.082µs"
TRACE[12-22|18:20:20.525] Handled RPC response                     reqid=12   duration="2.565µs"
DEBUG[12-22|18:20:20.525] Journalled generator progress            progress=done
DEBUG[12-22|18:20:20.525] Journalled disk layer                    root=253f3f..ea8dbd
--- FAIL: TestArbOSVersion60 (5.49s)

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

@bragaigor bragaigor marked this pull request as ready for review December 18, 2025 15:58
Copy link
Contributor

@diegoximenes diegoximenes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requested minor change 🙂

@bragaigor bragaigor force-pushed the braga/rename-arbdb-consensusdb branch from 382e42f to 1285b0d Compare December 18, 2025 21:03
@bragaigor bragaigor assigned diegoximenes and unassigned bragaigor Dec 18, 2025
pmikolajczyk41
pmikolajczyk41 previously approved these changes Dec 19, 2025
Copy link
Member

@pmikolajczyk41 pmikolajczyk41 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just 2 minor things:

  • there are still some methods that use Db suffix, which is incompatible with the new variable naming - I tried to mark all such places I found (sorry for comment spam, but I tried to be helpful 😅 )
  • unnecessary import aliases

pmikolajczyk41
pmikolajczyk41 previously approved these changes Dec 19, 2025
pmikolajczyk41
pmikolajczyk41 previously approved these changes Dec 19, 2025
diegoximenes
diegoximenes previously approved these changes Dec 19, 2025
diegoximenes
diegoximenes previously approved these changes Dec 22, 2025
Rename database variable names to comply with Consensus
and Execution Split in codebase.

Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
Signed-off-by: Igor Braga <5835477+bragaigor@users.noreply.github.com>
@joshuacolvin0 joshuacolvin0 added this pull request to the merge queue Dec 22, 2025
Merged via the queue into master with commit 1f915ab Dec 22, 2025
40 of 41 checks passed
@joshuacolvin0 joshuacolvin0 deleted the braga/rename-arbdb-consensusdb branch December 22, 2025 20:19
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.

5 participants