File tree Expand file tree Collapse file tree 5 files changed +3
-13
lines changed
mithril-test-lab/mithril-devnet Expand file tree Collapse file tree 5 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ echo ">>>> Current Cardano Era: \${CURRENT_CARDANO_ERA}"
12
12
13
13
# Get the current epoch
14
14
CURRENT_EPOCH=\$ (CARDANO_NODE_SOCKET_PATH=node-pool${N} /ipc/node.sock $CARDANO_CLI $CARDANO_CLI_ERA query tip \\
15
- --cardano-mode \\
16
15
--testnet-magic ${NETWORK_MAGIC} | jq .epoch)
17
16
echo ">>>> Current Epoch: \$ {CURRENT_EPOCH}"
18
17
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ cat >> pools.sh <<EOF
3
3
#!/usr/bin/env bash
4
4
5
5
CARDANO_NODE_SOCKET_PATH=node-pool1/ipc/node.sock $CARDANO_CLI $CARDANO_CLI_ERA query stake-pools \\
6
- --cardano-mode \\
7
6
--testnet-magic ${NETWORK_MAGIC}
8
7
EOF
9
8
Original file line number Diff line number Diff line change @@ -22,26 +22,22 @@ cat >> query-cardano.sh <<EOF
22
22
23
23
echo ">> Query chain tip"
24
24
CARDANO_NODE_SOCKET_PATH=node-pool1/ipc/node.sock $CARDANO_CLI $CARDANO_CLI_ERA query tip \\
25
- --cardano-mode \\
26
25
--testnet-magic ${NETWORK_MAGIC} | jq .
27
26
28
27
echo
29
28
echo ">> Query whole utxo"
30
29
CARDANO_NODE_SOCKET_PATH=node-pool1/ipc/node.sock $CARDANO_CLI $CARDANO_CLI_ERA query utxo \\
31
- --cardano-mode \\
32
30
--testnet-magic ${NETWORK_MAGIC} \\
33
31
--whole-utxo
34
32
echo
35
33
36
34
echo ">> Query stake pools"
37
35
CARDANO_NODE_SOCKET_PATH=node-pool1/ipc/node.sock $CARDANO_CLI $CARDANO_CLI_ERA query stake-pools \\
38
- --cardano-mode \\
39
36
--testnet-magic ${NETWORK_MAGIC}
40
37
echo
41
38
42
39
echo ">> Query stake distribution"
43
40
CARDANO_NODE_SOCKET_PATH=node-pool1/ipc/node.sock $CARDANO_CLI $CARDANO_CLI_ERA query stake-snapshot --all-stake-pools \\
44
- --cardano-mode \\
45
41
--testnet-magic ${NETWORK_MAGIC} | jq .
46
42
echo
47
43
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ CARDANO_ACTIVATION_WAIT_ROUNDS=1
64
64
CARDANO_ACTIVATION_WAIT_ROUND_DELAY=2
65
65
while true
66
66
do
67
- EPOCH=\$ (CARDANO_NODE_SOCKET_PATH=node-pool1/ipc/node.sock $CARDANO_CLI $CARDANO_CLI_ERA query tip --cardano-mode -- testnet-magic ${NETWORK_MAGIC} 2> /dev/null | jq -r .epoch)
67
+ EPOCH=\$ (CARDANO_NODE_SOCKET_PATH=node-pool1/ipc/node.sock $CARDANO_CLI $CARDANO_CLI_ERA query tip --testnet-magic ${NETWORK_MAGIC} 2> /dev/null | jq -r .epoch)
68
68
if [ "\$ EPOCH" != "" ] ; then
69
69
echo ">>>> Cardano network is ready!"
70
70
break
@@ -165,10 +165,10 @@ done
165
165
cat >> start-mithril.sh << EOF
166
166
167
167
echo ">> Wait for Mithril signers to be registered"
168
- EPOCH_NOW=\$ (CARDANO_NODE_SOCKET_PATH=node-pool1/ipc/node.sock $CARDANO_CLI $CARDANO_CLI_ERA query tip --cardano-mode -- testnet-magic ${NETWORK_MAGIC} 2> /dev/null | jq -r .epoch)
168
+ EPOCH_NOW=\$ (CARDANO_NODE_SOCKET_PATH=node-pool1/ipc/node.sock $CARDANO_CLI $CARDANO_CLI_ERA query tip --testnet-magic ${NETWORK_MAGIC} 2> /dev/null | jq -r .epoch)
169
169
while true
170
170
do
171
- EPOCH=\$ (CARDANO_NODE_SOCKET_PATH=node-pool1/ipc/node.sock $CARDANO_CLI $CARDANO_CLI_ERA query tip --cardano-mode -- testnet-magic ${NETWORK_MAGIC} 2> /dev/null | jq -r .epoch)
171
+ EPOCH=\$ (CARDANO_NODE_SOCKET_PATH=node-pool1/ipc/node.sock $CARDANO_CLI $CARDANO_CLI_ERA query tip --testnet-magic ${NETWORK_MAGIC} 2> /dev/null | jq -r .epoch)
172
172
EPOCH_DELTA=\$ (( \$ EPOCH - \$ EPOCH_NOW ))
173
173
if [ \$ EPOCH_DELTA -ge 2 ] ; then
174
174
echo ">>>> Ready!"
Original file line number Diff line number Diff line change 2
2
3
3
echo " >> Query chain tip"
4
4
CARDANO_NODE_SOCKET_PATH=node-pool1/ipc/node.sock ./cardano-cli latest query tip \
5
- --cardano-mode \
6
5
--testnet-magic 42 | jq .
7
6
8
7
echo
9
8
echo " >> Query whole utxo"
10
9
CARDANO_NODE_SOCKET_PATH=node-pool1/ipc/node.sock ./cardano-cli latest query utxo \
11
- --cardano-mode \
12
10
--testnet-magic 42 \
13
11
--whole-utxo
14
12
echo
15
13
16
14
echo " >> Query stake pools"
17
15
CARDANO_NODE_SOCKET_PATH=node-pool1/ipc/node.sock ./cardano-cli latest query stake-pools \
18
- --cardano-mode \
19
16
--testnet-magic 42
20
17
echo
21
18
22
19
echo " >> Query stake distribution"
23
20
CARDANO_NODE_SOCKET_PATH=node-pool1/ipc/node.sock ./cardano-cli latest query stake-snapshot --all-stake-pools \
24
- --cardano-mode \
25
21
--testnet-magic 42 | jq .
26
22
echo
27
23
You can’t perform that action at this time.
0 commit comments