File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,14 @@ function publishReferenceScripts() {
97
97
98
98
function queryPParams() {
99
99
echo >&2 " Query Protocol parameters"
100
- docker exec demo-cardano-node-1 cardano-cli query protocol-parameters --testnet-magic ${NETWORK_ID} --out-file /dev/stdout \
101
- | jq " .txFeeFixed = 0 | .txFeePerByte = 0 | .executionUnitPrices.priceMemory = 0 | .executionUnitPrices.priceSteps = 0" > protocol-parameters.json
100
+ if [ " $( docker container inspect -f ' {{.State.Running}}' demo-cardano-node-1 ) " == " true" ];
101
+ then
102
+ docker exec demo-cardano-node-1 cardano-cli query protocol-parameters --testnet-magic ${NETWORK_ID} --socket-path ${DEVNET_DIR} /node.socket --out-file /dev/stdout \
103
+ | jq " .txFeeFixed = 0 | .txFeePerByte = 0 | .executionUnitPrices.priceMemory = 0 | .executionUnitPrices.priceSteps = 0" > devnet/protocol-parameters.json
104
+ else
105
+ cardano-cli query protocol-parameters --testnet-magic ${NETWORK_ID} --socket-path ${DEVNET_DIR} /node.socket --out-file /dev/stdout \
106
+ | jq " .txFeeFixed = 0 | .txFeePerByte = 0 | .executionUnitPrices.priceMemory = 0 | .executionUnitPrices.priceSteps = 0" > devnet/protocol-parameters.json
107
+ fi
102
108
echo >&2 " Saved in protocol-parameters.json"
103
109
}
104
110
You can’t perform that action at this time.
0 commit comments