mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 22:57:59 -05:00
contrib/localnet: cleaned up all tmux sessions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user