@@ -58,7 +58,7 @@ chmod +x bin/*
58
58
mkdir -p bin
59
59
version=0.13.0
60
60
curl -L -O https://github.com/input-output-hk/hydra/releases/download/${version} /hydra-aarch64-darwin-${version} .zip
61
- unzip -d bin hydra-aarch64-darwin-${version } .zip
61
+ unzip -d bin hydra-aarch64-darwin-${HYDRA_VERSION } .zip
62
62
curl -L -o - https://github.com/input-output-hk/mithril/releases/download/2347.0/mithril-2347.0-macos-x64.tar.gz \
63
63
| tar xz -C bin
64
64
curl -L -o - https://github.com/input-output-hk/cardano-node/releases/download/8.1.2/cardano-node-8.1.2-macos.tar.gz \
@@ -381,11 +381,11 @@ In summary, the Hydra head participants exchanged and agreed on:
381
381
382
382
## Step 3: Start the Hydra node
383
383
384
- With all these parameters defined, we now pick a version of the Head protocol we
385
- want to use. This is defined by the ` hydra-node --version ` itself and the
384
+ With all these parameters defined, we now pick a HYDRA_VERSION of the Head protocol we
385
+ want to use. This is defined by the ` hydra-node --HYDRA_VERSION ` itself and the
386
386
` --hydra-scripts-tx-id ` which point to scripts published on-chain.
387
387
388
- For all [ released] ( https://github.com/input-output-hk/hydra/releases ) versions
388
+ For all [ released] ( https://github.com/input-output-hk/hydra/releases ) HYDRA_VERSIONs
389
389
of the ` hydra-node ` and common Cardano networks, the scripts do get
390
390
pre-published and we can just use them. See the [ user
391
391
manual] ( ../getting-started/quickstart#reference-scripts ) for more information
@@ -397,12 +397,13 @@ Let's start the `hydra-node` with all these parameters now:
397
397
<TabItem value =" alice " label =" Alice " >
398
398
399
399
``` shell
400
+ version=0.13.0
400
401
hydra-node \
401
402
--node-id " alice-node" \
402
403
--persistence-dir persistence-alice \
403
404
--cardano-signing-key credentials/alice-node.sk \
404
405
--hydra-signing-key credentials/alice-hydra.sk \
405
- --hydra-scripts-tx-id e5eb53b913e274e4003692d7302f22355af43f839f7aa73cb5eb53510f564496 \
406
+ --hydra-scripts-tx-id $( curl https://raw.githubusercontent.com/input-output-hk/hydra/master/networks.json | jq -r " .preprod. \" ${version} \" " ) \
406
407
--ledger-protocol-parameters protocol-parameters.json \
407
408
--testnet-magic 1 \
408
409
--node-socket node.socket \
@@ -419,12 +420,13 @@ hydra-node \
419
420
<TabItem value =" bob " label =" Bob " >
420
421
421
422
``` shell
423
+ version=0.13.0
422
424
hydra-node \
423
425
--node-id " bob-node" \
424
426
--persistence-dir persistence-bob \
425
427
--cardano-signing-key credentials/bob-node.sk \
426
428
--hydra-signing-key credentials/bob-hydra.sk \
427
- --hydra-scripts-tx-id e5eb53b913e274e4003692d7302f22355af43f839f7aa73cb5eb53510f564496 \
429
+ --hydra-scripts-tx-id $( curl https://raw.githubusercontent.com/input-output-hk/hydra/master/networks.json | jq -r " .preprod. \" ${version} \" " ) \
428
430
--ledger-protocol-parameters protocol-parameters.json \
429
431
--testnet-magic 1 \
430
432
--node-socket node.socket \
0 commit comments