Skip to content

Commit 1eccf0a

Browse files
authored
Merge pull request #1182 from input-output-hk/jpraynaud/fix-latest-digest-documentation
Fix latest digest usage in documentation
2 parents 994c08d + b4b51f0 commit 1eccf0a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/website/root/manual/developer-docs/nodes/mithril-client.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export MITHRIL_IMAGE_ID=**YOUR_MITHRIL_IMAGE_ID**
201201
export NETWORK=**YOUR_CARDANO_NETWORK**
202202
export AGGREGATOR_ENDPOINT=**YOUR_AGGREGATOR_ENDPOINT**
203203
export GENESIS_VERIFICATION_KEY=$(wget -q -O - **YOUR_GENESIS_VERIFICATION_KEY**)
204-
export SNAPSHOT_DIGEST=$(curl -sL $AGGREGATOR_ENDPOINT/artifact/snapshots | jq -r '.[0].digest')
204+
export SNAPSHOT_DIGEST=latest
205205
```
206206

207207
Here is an example configuration for the `release-preprod` network and the `latest` stable Docker image:
@@ -211,7 +211,7 @@ export MITHRIL_IMAGE_ID=latest
211211
export NETWORK=preprod
212212
export AGGREGATOR_ENDPOINT=https://aggregator.release-preprod.api.mithril.network/aggregator
213213
export GENESIS_VERIFICATION_KEY=$(wget -q -O - https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/release-preprod/genesis.vkey)
214-
export SNAPSHOT_DIGEST=$(curl -sL $AGGREGATOR_ENDPOINT/artifact/snapshots | jq -r '.[0].digest')
214+
export SNAPSHOT_DIGEST=latest
215215
```
216216

217217
Proceed by creating a shell function for the Mithril client:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export GENESIS_VERIFICATION_KEY=$(wget -q -O - **YOUR_GENESIS_VERIFICATION_KEY**
222222

223223
# Digest of the latest produced snapshot for convenience of the demo
224224
# You can also modify this variable and set it to the value of the digest of a snapshot that you can retrieve at step 2
225-
export SNAPSHOT_DIGEST=$(curl -sL $AGGREGATOR_ENDPOINT/artifact/snapshots | jq -r '.[0].digest')
225+
export SNAPSHOT_DIGEST=latest
226226
```
227227

228228
### Step 2: Select a snapshot

docs/website/root/manual/getting-started/run-mithril-devnet.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,14 +428,14 @@ tail -n 22 ./node-pool2/node.log
428428
429429
```bash
430430
# Cardano network
431-
NETWORK=devnet
431+
export NETWORK=devnet
432432

433433
# Aggregator API endpoint URL
434-
AGGREGATOR_ENDPOINT=http://localhost:8080/aggregator
434+
export AGGREGATOR_ENDPOINT=http://localhost:8080/aggregator
435435

436436
# Digest of the latest produced snapshot for convenience of the demo
437437
# You can also modify this variable and set it to the value of the digest of a snapshot that you can retrieve at step 2
438-
SNAPSHOT_DIGEST=$(curl -sL $AGGREGATOR_ENDPOINT/artifact/snapshots | jq -r '.[0].digest')
438+
export SNAPSHOT_DIGEST=latest
439439
```
440440
441441
You can pick an online test aggregator directly from the [Mithril Explorer](https://mithril.network/explorer).

0 commit comments

Comments
 (0)