Skip to content

Commit cda7321

Browse files
committed
Set better binary_path default in devnet.sh
1 parent e5dc535 commit cda7321

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/devnet.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ if [[ $build_binary == "y" ]]; then
4949
eval "$build_cmd" || exit 1
5050
else
5151
# Ask the user whether to use a custom relative path
52-
read -p "Do you want to run snarkos from a relative path? (e.g. ./target/debug/, defaults to the installed binary): " binary_path
53-
binary_path=${binary_path:-""}
52+
read -p "Do you want to run snarkos from a relative path? (default: ./target/debug/snarkos): " binary_path
53+
binary_path=${binary_path:-"./target/debug/snarkos"}
5454
fi
5555

5656
# Clear the ledger logs for each validator if the user chooses to clear ledger
@@ -60,7 +60,7 @@ if [[ $clear_ledger == "y" ]]; then
6060

6161
for ((index = 0; index < $((total_validators + total_clients)); index++)); do
6262
# Run 'snarkos clean' for each node in the background
63-
${binary_path}snarkos clean --network $network_id --dev $index &
63+
${binary_path} clean --network $network_id --dev $index &
6464

6565
# Store the process ID of the background task
6666
clean_processes+=($!)
@@ -107,7 +107,7 @@ for validator_index in "${validator_indices[@]}"; do
107107
fi
108108

109109
# Send the command to start the validator to the new window and capture output to the log file
110-
tmux send-keys -t "devnet:$window_index" "${binary_path}snarkos start --nodisplay --network $network_id --dev $validator_index --dev-num-validators $total_validators --validator --logfile $log_file --verbosity $verbosity --metrics --metrics-ip=0.0.0.0:$metrics_port --no-dev-txs" C-m
110+
tmux send-keys -t "devnet:$window_index" "${binary_path} start --nodisplay --network $network_id --dev $validator_index --dev-num-validators $total_validators --validator --logfile $log_file --verbosity $verbosity --metrics --metrics-ip=0.0.0.0:$metrics_port --no-dev-txs" C-m
111111
done
112112

113113
if [ "$total_clients" -ne 0 ]; then
@@ -126,7 +126,7 @@ if [ "$total_clients" -ne 0 ]; then
126126
tmux new-window -t "devnet:$window_index" -n $name
127127

128128
# Send the command to start the client to the new window and capture output to the log file
129-
tmux send-keys -t "devnet:$window_index" "${binary_path}snarkos start --nodisplay --network $network_id --dev $window_index --dev-num-validators $total_validators --client --logfile $log_file --verbosity $verbosity" C-m
129+
tmux send-keys -t "devnet:$window_index" "${binary_path} start --nodisplay --network $network_id --dev $window_index --dev-num-validators $total_validators --client --logfile $log_file --verbosity $verbosity" C-m
130130
done
131131
fi
132132

0 commit comments

Comments
 (0)