Skip to content

snapshot-converter: HACK read salt from bloomfilter files - #2097

Merged
jasagredo merged 1 commit into
mainfrom
js/hack-lsm
Jul 1, 2026
Merged

snapshot-converter: HACK read salt from bloomfilter files#2097
jasagredo merged 1 commit into
mainfrom
js/hack-lsm

Conversation

@jasagredo

Copy link
Copy Markdown
Contributor

While we wait for IntersectMBO/lsm-tree#855 we are going to read the salt from one of the exported files.

@geo2a geo2a left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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).

@jasagredo

Copy link
Copy Markdown
Contributor Author

Tested locally with a snapshot @jpraynaud provided:

# InMemory to LSMcabal 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 importcabal run -v0 exe:snapshot-converter -- lsm import --lsm-database lsm --lsm-import-from 116074908_exported --snapshot 116074908
Done# LSM exportcabal run -v0 exe:snapshot-converter -- lsm export --lsm-database lsm --lsm-export-to 116074908_exported_2 --snapshot 116074908
Done# LSM to InMemorycabal 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 snapshotsdiff 116074908_mem/tables ~/Downloads/116074908/tables && diff 116074908_mem/meta ~/Downloads/116074908/meta && diff 116074908_mem/state ~/Downloads/116074908/stateecho $?
0

@jasagredo
jasagredo enabled auto-merge July 1, 2026 11:23
@jasagredo
jasagredo merged commit eb61e60 into main Jul 1, 2026
16 of 18 checks passed
@jasagredo
jasagredo deleted the js/hack-lsm branch July 1, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants