Skip to content

Blobstoredump#1598

Draft
allanbrondum wants to merge 40 commits into
release/p11from
blobstoredump
Draft

Blobstoredump#1598
allanbrondum wants to merge 40 commits into
release/p11from
blobstoredump

Conversation

@allanbrondum

@allanbrondum allanbrondum commented Mar 22, 2026

Copy link
Copy Markdown
Collaborator

Purpose

Tool to dump block state database.

Example of how to run it:

stack run block-state-dump -- state --out-dir ~/tmp/bsdump --tree-state-db-path ~/local_nodes/local_p9/data/database-v4/treestate-0 --account-map-db-path ~/local_nodes/local_p9/data/database-v4/accountmap --block-state-path ~/local_nodes/local_p9/data/database-v4/blockstate-0.dat --protocol-version P9 --block-heights '[17485]'
dot -Tpng graph.dot -o graph.png; open graph.png

Changes

_Describe the changes that were needed.

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

@allanbrondum allanbrondum marked this pull request as draft March 22, 2026 10:50
@codecov

codecov Bot commented Mar 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0.88496% with 224 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.75%. Comparing base (aa945b6) to head (695e9c5).

Files with missing lines Patch % Lines
...t-block-state/src/block_state/state_dump/shared.rs 0.00% 127 Missing ⚠️
plt/plt-block-state/src/ffi/block_state.rs 0.00% 35 Missing ⚠️
plt/plt-block-state/src/block_state/state_dump.rs 0.00% 18 Missing ⚠️
...nsus/src/Concordium/GlobalState/ContractStateV1.hs 0.00% 15 Missing ⚠️
...lockState/ProtocolLevelTokens/RustPLTBlockState.hs 0.00% 15 Missing ⚠️
plt/plt-block-state/src/block_state.rs 9.09% 10 Missing ⚠️
plt/plt-block-state/src/block_state/blob_store.rs 0.00% 3 Missing ⚠️
...s/src/Concordium/KonsensusV1/TreeState/LowLevel.hs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           release/p11    #1598      +/-   ##
===============================================
- Coverage        62.98%   62.75%   -0.24%     
===============================================
  Files              343      345       +2     
  Lines            68253    68475     +222     
  Branches          3013     3013              
===============================================
- Hits             42992    42970      -22     
- Misses           22248    22492     +244     
  Partials          3013     3013              
Files with missing lines Coverage Δ
concordium-consensus/src/Concordium/GlobalState.hs 32.87% <ø> (ø)
...src/Concordium/GlobalState/Persistent/BlobStore.hs 58.23% <100.00%> (-0.23%) ⬇️
.../src/Concordium/GlobalState/Persistent/LFMBTree.hs 76.38% <ø> (ø)
...nsus/src/Concordium/GlobalState/Persistent/Trie.hs 60.27% <ø> (ø)
...s/src/Concordium/KonsensusV1/TreeState/LowLevel.hs 74.35% <0.00%> (-1.96%) ⬇️
plt/plt-block-state/src/block_state/blob_store.rs 0.00% <0.00%> (ø)
plt/plt-block-state/src/block_state.rs 76.66% <9.09%> (-2.55%) ⬇️
...nsus/src/Concordium/GlobalState/ContractStateV1.hs 70.39% <0.00%> (-7.71%) ⬇️
...lockState/ProtocolLevelTokens/RustPLTBlockState.hs 47.91% <0.00%> (-21.79%) ⬇️
plt/plt-block-state/src/block_state/state_dump.rs 0.00% <0.00%> (ø)
... and 2 more

... and 4 files with indirect coverage changes

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.

1 participant