snapshot-converter: HACK read salt from bloomfilter files - #2097
Merged
Conversation
jasagredo
requested review from
bladyjoker,
dnadales,
geo2a and
nfrisby
as code owners
June 30, 2026 15:50
geo2a
approved these changes
Jul 1, 2026
geo2a
left a comment
Contributor
There was a problem hiding this comment.
Approving, provided that you've tested that the conversion works downstream (I saw that you asked JP for a snaphot to try this hack on).
Contributor
Author
|
Tested locally with a snapshot @jpraynaud provided: ❯ # InMemory to LSM
❯ cabal run -v0 exe:snapshot-converter -- convert --snapshot-in ~/Downloads/116074908 --snapshot-out ./116074908 --lsm-export-to ./116074908_exported --config ../cardano-node/configuration/cardano/mainnet-config.json
Reading ledger state from 116074908... Done
Copying state file...Done
Streaming ledger tables...Done
Generating new metadata file...Done
❯ # LSM import
❯ cabal run -v0 exe:snapshot-converter -- lsm import --lsm-database lsm --lsm-import-from 116074908_exported --snapshot 116074908
Done
❯ # LSM export
❯ cabal run -v0 exe:snapshot-converter -- lsm export --lsm-database lsm --lsm-export-to 116074908_exported_2 --snapshot 116074908
Done
❯ # LSM to InMemory
❯ cabal run -v0 snapshot-converter -- convert --snapshot-in ./116074908 --lsm-import-from ./116074908_exported_2 --snapshot-out ./116074908_mem --config ../cardano-node/configuration/cardano/mainnet-config.json
Reading ledger state from 116074908... Done
Copying state file...Done
Streaming ledger tables...Done
Generating new metadata file...Done
❯ # Diff InMemory snapshots
❯ diff 116074908_mem/tables ~/Downloads/116074908/tables && diff 116074908_mem/meta ~/Downloads/116074908/meta && diff 116074908_mem/state ~/Downloads/116074908/state
❯ echo $?
0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While we wait for IntersectMBO/lsm-tree#855 we are going to read the salt from one of the exported files.