Skip to content

Commit c8f7d3a

Browse files
committed
docs(website): update bootstrap cardano node guide
1 parent eda42f1 commit c8f7d3a

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

docs/website/root/manual/getting-started/bootstrap-cardano-node.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,38 @@ Cardano db 'a1b5e6f43521fd9c5f55e3d6bf27dc4a62f43980681cb67e28cc40582a0d1974' ha
482482
If you are using Cardano Docker image, you can restore a Cardano Node with:
483483
484484
docker run -v cardano-node-ipc:/ipc -v cardano-node-data:/data --mount type=bind,source="/home/mithril/data/testnet/a1b5e6f43521fd9c5f55e3d6bf27dc4a62f43980681cb67e28cc40582a0d1974/db",target=/data/db/ -e NETWORK=preview ghcr.io/intersectmbo/cardano-node:10.4.1
485+
486+
487+
Upgrade and replace the restored ledger state snapshot to 'LMDB' flavor by running the command:
488+
489+
mithril-client --unstable tools utxo-hd snapshot-converter --db-directory db --cardano-node-version 10.4.1 --utxo-hd-flavor LMDB --cardano-network preview --commit
490+
491+
Or to 'Legacy' flavor by running the command:
492+
493+
mithril-client --unstable tools utxo-hd snapshot-converter --db-directory db --cardano-node-version 10.4.1 --utxo-hd-flavor Legacy --cardano-network preview --commit
485494
```
486495
487-
### Step 5: Launch a Cardano node from the restored Cardano DB snapshot
496+
### Step 5 (optional): Convert the ledger state snapshot to another flavor
497+
498+
After restoring a snapshot with the `--include-ancillary` option, the ledger state is in the `InMemory` format. You can convert it to another UTxO-HD flavor (e.g., `LMDB` or `Legacy`) using the Mithril client `tools utxo-hd snapshot-converter` command.
499+
500+
To do so, run the following command with the `--unstable` flag:
501+
502+
```
503+
mithril-client --unstable tools utxo-hd snapshot-converter --db-directory db --cardano-node-version latest --utxo-hd-flavor LMDB --cardano-network $CARDANO_NETWORK
504+
```
505+
506+
Or, to convert it to the `Legacy` flavor:
507+
508+
```
509+
mithril-client --unstable tools utxo-hd snapshot-converter --db-directory db --cardano-node-version latest --utxo-hd-flavor Legacy --cardano-network $CARDANO_NETWORK
510+
```
511+
512+
Use the `--commit` option to replace the current ledger state with the converted snapshot.
513+
514+
You can also replace `latest` with a specific Cardano node version tag which will be used to download the corresponding Cardano node distribution and extract the `snapshot-converter` binary tool.
515+
516+
### Step 6: Launch a Cardano node from the restored Cardano DB snapshot
488517
489518
Launch an empty Cardano node and make it live in minutes!
490519

0 commit comments

Comments
 (0)