IntersectMBO / IntersectMBO/ouroboros-network
Break apart ledger dump in query miniprotocol
- 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
Assessment
This issue has not been assessed yet.