contrib/localnet: cleaned up all tmux sessions

This commit is contained in:
skoupidi
2024-11-21 14:47:04 +02:00
parent ef3ebc5b2e
commit 2eda1ec773
24 changed files with 204 additions and 120 deletions

View File

@@ -4,6 +4,10 @@ set -e
# Start a tmux session with two mining and a non-mining darkfid nodes.
# Additionally, start two minerd daemons.
# Path to used binaries
MINERD="../../../minerd"
DARKFID="LOG_TARGETS='!runtime,!sled' ../../../darkfid"
session=darkfid-small
if [ "$1" = "-vv" ]; then
@@ -13,18 +17,18 @@ else
verbose=""
fi
tmux new-session -d -s $session
tmux send-keys -t $session "../../../minerd ${verbose} -c minerd0.toml" Enter
tmux new-session -d -s $session -n "node0"
tmux send-keys -t $session "$MINERD $verbose -c minerd0.toml" Enter
sleep 1
tmux split-window -t $session -v -l 90%
tmux send-keys -t $session "LOG_TARGETS='!sled,!runtime' ../../../darkfid ${verbose} -c darkfid0.toml" Enter
tmux send-keys -t $session "$DARKFID $verbose -c darkfid0.toml" Enter
sleep 2
tmux new-window -t $session
tmux send-keys -t $session "../../../minerd ${verbose} -c minerd1.toml" Enter
tmux new-window -t $session -n "node1"
tmux send-keys -t $session "$MINERD $verbose -c minerd1.toml" Enter
sleep 1
tmux split-window -t $session -v -l 90%
tmux send-keys -t $session "LOG_TARGETS='!sled,!runtime' ../../../darkfid ${verbose} -c darkfid1.toml" Enter
tmux send-keys -t $session "$DARKFID $verbose -c darkfid1.toml" Enter
sleep 2
tmux new-window -t $session
tmux send-keys -t $session "LOG_TARGETS='!sled,!runtime' ../../../darkfid ${verbose} -c darkfid2.toml" Enter
tmux new-window -t $session -n "node2"
tmux send-keys -t $session "$DARKFID $verbose -c darkfid2.toml" Enter
tmux attach -t $session