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

@@ -3,6 +3,10 @@ set -e
# Start a tmux session with a minerd daemon and a darkfid node
# Path to used binaries
MINERD="../../../minerd -c minerd.toml"
DARKFID="LOG_TARGETS='!net,!runtime,!sled' ../../../darkfid -c darkfid.toml"
session=darkfid-single-node
if [ "$1" = "-vv" ]; then
@@ -12,9 +16,9 @@ else
verbose=""
fi
tmux new-session -d -s $session
tmux send-keys -t $session "../../../minerd ${verbose} -c minerd.toml" Enter
tmux new-session -d -s $session -n $session
tmux send-keys -t $session "$MINERD $verbose" Enter
sleep 1
tmux split-window -t $session -v -l 90%
tmux send-keys -t $session "LOG_TARGETS='!sled,!net' ../../../darkfid ${verbose} -c darkfid.toml" Enter
tmux send-keys -t $session "$DARKFID $verbose" Enter
tmux attach -t $session