Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cardano-submit-api startup script on testnets
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
cardano_node_tests/cluster_scripts/testnets_nopools/cardano-submit-api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#!/usr/bin/env bash | ||
choice() { i=$1; shift; eval "echo \${$((i + 1))}"; } | ||
|
||
testnet_magic="$(<./state-cluster/db-bft1/protocolMagicId)" | ||
testnet_magic="$(<./state-cluster/db-relay1/protocolMagicId)" | ||
|
||
echo "Starting cardano-submit-api: cardano-submit-api" | ||
echo "--config ./state-cluster/submit-api-config.yaml" | ||
echo "--socket-path ./state-cluster/bft1.socket" | ||
echo "--socket-path ./state-cluster/relay1.socket" | ||
echo "--listen-address 127.0.0.1" | ||
echo "--port 8090" | ||
echo --testnet-magic "$testnet_magic" | ||
echo "..or, once again, in a single line:" | ||
echo cardano-submit-api --config ./state-cluster/submit-api-config.yaml --socket-path ./state-cluster/bft1.socket --listen-address 127.0.0.1 --port 8090 --testnet-magic "$testnet_magic" | ||
echo cardano-submit-api --config ./state-cluster/submit-api-config.yaml --socket-path ./state-cluster/relay1.socket --listen-address 127.0.0.1 --port 8090 --testnet-magic "$testnet_magic" | ||
|
||
|
||
exec cardano-submit-api --config ./state-cluster/submit-api-config.yaml --socket-path ./state-cluster/bft1.socket --listen-address 127.0.0.1 --port 8090 --testnet-magic "$testnet_magic" | ||
exec cardano-submit-api --config ./state-cluster/submit-api-config.yaml --socket-path ./state-cluster/relay1.socket --listen-address 127.0.0.1 --port 8090 --testnet-magic "$testnet_magic" |