Skip to content

Commit

Permalink
Update devnet scripts and grafana json
Browse files Browse the repository at this point in the history
  • Loading branch information
howardwu committed Dec 19, 2023
1 parent 5c7f5dd commit 96b2733
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 321 deletions.
2 changes: 1 addition & 1 deletion .devnet/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ start_snarkos_in_tmux() {
tmux new-session -d -s snarkos-session
# Send the snarkOS start command to the tmux session with the NODE_ID
tmux send-keys -t "snarkos-session" "snarkos start --nodisplay --bft 0.0.0.0:5000 --rest 0.0.0.0:3033 --peers $NODE_IP:4133 --validators $NODE_IP:5000 --verbosity $VERBOSITY --dev $NODE_ID --dev-num-validators $NUM_INSTANCES --validator" C-m
tmux send-keys -t "snarkos-session" "snarkos start --nodisplay --bft 0.0.0.0:5000 --rest 0.0.0.0:3033 --peers $NODE_IP:4133 --validators $NODE_IP:5000 --verbosity $VERBOSITY --dev $NODE_ID --dev-num-validators $NUM_INSTANCES --validator --metrics" C-m
exit # Exit root user
EOF
Expand Down
6 changes: 5 additions & 1 deletion devnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ for validator_index in "${validator_indices[@]}"; do
tmux new-window -t "devnet:$validator_index" -n "window$validator_index"

# Send the command to start the validator to the new window and capture output to the log file
tmux send-keys -t "devnet:window$validator_index" "snarkos start --nodisplay --dev $validator_index --dev-num-validators $total_validators --validator --logfile $log_file" C-m
if [ "$validator_index" -eq 0 ]; then
tmux send-keys -t "devnet:window$validator_index" "snarkos start --nodisplay --dev $validator_index --dev-num-validators $total_validators --validator --logfile $log_file --metrics" C-m
else
tmux send-keys -t "devnet:window$validator_index" "snarkos start --nodisplay --dev $validator_index --dev-num-validators $total_validators --validator --logfile $log_file" C-m
fi
done

# Attach to the tmux session to view and interact with the windows
Expand Down
Loading

0 comments on commit 96b2733

Please sign in to comment.