Skip to content

Commit 21632a5

Browse files
committed
feat(docs): add cardano-db download example with a range of immutables
1 parent 0fda445 commit 21632a5

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

docs/website/versioned_docs/version-maintained/manual/getting-started/bootstrap-cardano-node.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,9 @@ You will see more information about the snapshot:
446446
447447
### Step 4: Download the selected Cardano DB snapshot
448448
449-
To download the selected snapshot from the remote location to your remote location, run:
449+
#### Step 4.1 : Download the full Cardano node database
450+
451+
To download the full selected snapshot from the remote location to your local location, run:
450452
451453
```bash
452454
./mithril-client cardano-db download --include-ancillary $SNAPSHOT_DIGEST
@@ -493,6 +495,21 @@ Upgrade and replace the restored ledger state snapshot to 'LMDB' flavor by runni
493495
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
494496
```
495497
498+
#### Step 4.2 : Download a partial range of immutable files
499+
500+
To download a range of immutable files (e.g. from 17,000 to 18,000) from the remote location to your local location, prepare the following environment variables:
501+
502+
```bash
503+
export IMMUTABLE_START=17000
504+
export IMMUTABLE_END=18000
505+
```
506+
507+
And run the command:
508+
509+
```bash
510+
./mithril-client cardano-db download $SNAPSHOT_DIGEST --include-ancillary --backend v2 --start $IMMUTABLE_START --end $IMMUTABLE_END
511+
```
512+
496513
### Step 5 (optional): Convert the ledger state snapshot to another flavor
497514
498515
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.

0 commit comments

Comments
 (0)