Skip to content

Use LfmbTree for locks, introducing LockIndex and an index from LockId - #1652

Merged
limemloh merged 7 commits into
release/p11from
limemloh/cor-2295-locks-real-state-implementation
Jun 8, 2026
Merged

Use LfmbTree for locks, introducing LockIndex and an index from LockId#1652
limemloh merged 7 commits into
release/p11from
limemloh/cor-2295-locks-real-state-implementation

Introduce Loadable, Cachable, Storable and Hashable for Option<T>

4addeb1
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jun 8, 2026 in 0s

64.14% (+0.06%) compared to 404cb8f

View this Pull Request on Codecov

64.14% (+0.06%) compared to 404cb8f

Details

Codecov Report

❌ Patch coverage is 89.43396% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.14%. Comparing base (404cb8f) to head (4addeb1).
⚠️ Report is 3 commits behind head on release/p11.

Files with missing lines Patch % Lines
...block-state/src/entity/protocol_level_locks/p11.rs 82.45% 10 Missing ⚠️
plt/plt-block-state/src/block_state.rs 28.57% 5 Missing ⚠️
plt/plt-block-state/src/persistent/cacheable.rs 0.00% 5 Missing ⚠️
plt/plt-block-state/src/persistent/blob_store.rs 84.21% 3 Missing ⚠️
...k-state/src/persistent/protocol_level_locks/p11.rs 94.73% 3 Missing ⚠️
plt/plt-block-state/src/persistent/hash.rs 80.00% 1 Missing ⚠️
plt/plt-scheduler/src/scheduler/plt_scheduler.rs 96.29% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           release/p11    #1652      +/-   ##
===============================================
+ Coverage        64.07%   64.14%   +0.06%     
===============================================
  Files              376      376              
  Lines            75007    75150     +143     
  Branches          3013     3014       +1     
===============================================
+ Hits             48064    48208     +144     
+ Misses           23930    23928       -2     
- Partials          3013     3014       +1     
Files with missing lines Coverage Δ
...cordiumTests/EndToEnd/CredentialDeploymentTests.hs 82.26% <100.00%> (ø)
...mTests/EndToEnd/TransactionTableIntegrationTest.hs 91.50% <100.00%> (ø)
...s/consensus/ConcordiumTests/KonsensusV1/CatchUp.hs 82.15% <100.00%> (ø)
...us/ConcordiumTests/KonsensusV1/Consensus/Blocks.hs 76.02% <100.00%> (ø)
plt/plt-block-state/src/entity/block_state/p11.rs 98.30% <100.00%> (ø)
.../plt-block-state/src/persistent/block_state/p11.rs 97.64% <100.00%> (+0.30%) ⬆️
plt/plt-scheduler/src/locks/lock_configuration.rs 92.95% <100.00%> (ø)
plt/plt-block-state/src/persistent/hash.rs 94.73% <80.00%> (-5.27%) ⬇️
plt/plt-scheduler/src/scheduler/plt_scheduler.rs 79.86% <96.29%> (+0.31%) ⬆️
plt/plt-block-state/src/persistent/blob_store.rs 78.78% <84.21%> (+7.53%) ⬆️
... and 4 more

... and 6 files with indirect coverage changes