IntersectMBO / IntersectMBO/ouroboros-network

Break apart ledger dump in query miniprotocol

Open
#3,671 4 comments 6 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
296
Forks
104
Avg merge
2d 10h
Merged PRs (30d)
4

Description

Dumping the entire ledger state is unweildy. In many cases, you only need a smaller section of the overall data being dumped such as the rewards GO snapshot. When dumped as json through cardano-cli this becomes extremely cumbersome and memory intensive to process. Even when processing through the miniprotocol in raw cbor, it stretches the memory limits of what cbor libraries can handle easily.

Suggested Fix:
Break out an additional query message that can retrieve just a specific snapshot (Mark, Set, Go).

This would limit the impact on RAM if utilized by cncli for leaderlogs or the new leaderlogs command inside cardano-cli.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.