Skip to content

P10->P11 migration into Rust block state - #1635

Merged
allanbrondum merged 21 commits into
feature/rust_block_state_p11_migrationfrom
ar/psr-90-haskell-side-migration-implementation_2
Jun 30, 2026
Merged

P10->P11 migration into Rust block state#1635
allanbrondum merged 21 commits into
feature/rust_block_state_p11_migrationfrom
ar/psr-90-haskell-side-migration-implementation_2

Conversation

@allanbrondum

@allanbrondum allanbrondum commented Apr 23, 2026

Copy link
Copy Markdown
Collaborator

Purpose

Implement migration of the Rust block state from P10 to P11 on the Haskell side.

Changes

The P10 PLT state is loaded by Rust and then migrated to P11 by Rust also.

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 changed the title Migration of Rust block state P10->P11 migration into Rust block state Apr 23, 2026
@allanbrondum
allanbrondum changed the base branch from ar/psr-91-implement-migration-of-rust-block-state-and-block-state to ar/psr-91-implement-migration-of-rust-block-state-and-block-state-2 June 22, 2026 11:30
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 56.25000% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.40%. Comparing base (7507410) to head (f445881).
⚠️ Report is 2 commits behind head on feature/rust_block_state_p11_migration.

Files with missing lines Patch % Lines
...State/Persistent/BlockState/ProtocolLevelTokens.hs 8.33% 11 Missing ⚠️
...src/Concordium/GlobalState/Persistent/BlobStore.hs 0.00% 4 Missing ⚠️
.../globalstate/GlobalStateTests/RustPLTBlockState.hs 86.36% 0 Missing and 3 partials ⚠️
...rc/Concordium/GlobalState/Persistent/BlockState.hs 50.00% 2 Missing ⚠️
plt/plt-block-state/src/ffi/block_state.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                            Coverage Diff                             @@
##           feature/rust_block_state_p11_migration    #1635      +/-   ##
==========================================================================
+ Coverage                                   64.38%   64.40%   +0.01%     
==========================================================================
  Files                                         380      381       +1     
  Lines                                       75735    75771      +36     
  Branches                                     3016     3019       +3     
==========================================================================
+ Hits                                        48762    48798      +36     
+ Misses                                      23957    23954       -3     
- Partials                                     3016     3019       +3     
Files with missing lines Coverage Δ
...lockState/ProtocolLevelTokens/RustPLTBlockState.hs 87.09% <100.00%> (+26.44%) ⬆️
...s/src/Concordium/GlobalState/Persistent/Genesis.hs 95.73% <100.00%> (ø)
...lobalstate/GlobalStateTests/ProtocolLevelTokens.hs 74.16% <100.00%> (ø)
concordium-consensus/tests/globalstate/Spec.hs 85.29% <100.00%> (+0.44%) ⬆️
plt/plt-block-state/src/ffi/block_state.rs 0.00% <0.00%> (ø)
...rc/Concordium/GlobalState/Persistent/BlockState.hs 70.33% <50.00%> (+0.03%) ⬆️
.../globalstate/GlobalStateTests/RustPLTBlockState.hs 86.36% <86.36%> (ø)
...src/Concordium/GlobalState/Persistent/BlobStore.hs 58.24% <0.00%> (-0.04%) ⬇️
...State/Persistent/BlockState/ProtocolLevelTokens.hs 71.93% <8.33%> (-3.07%) ⬇️

... and 9 files with indirect coverage changes

@soerenbf soerenbf left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Assuming @td202's comments are taken into account

Comment thread concordium-consensus/tests/globalstate/GlobalStateTests/RustPLTBlockState.hs Outdated
Comment thread concordium-consensus/tests/globalstate/GlobalStateTests/RustPLTBlockState.hs Outdated
Base automatically changed from ar/psr-91-implement-migration-of-rust-block-state-and-block-state-2 to feature/rust_block_state_p11_migration June 30, 2026 09:45
@allanbrondum
allanbrondum merged commit cff8ec8 into feature/rust_block_state_p11_migration Jun 30, 2026
7 of 8 checks passed
@allanbrondum
allanbrondum deleted the ar/psr-90-haskell-side-migration-implementation_2 branch June 30, 2026 21:09
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.

4 participants