Skip to content

Commit

Permalink
Tweak script
Browse files Browse the repository at this point in the history
  • Loading branch information
mrBliss committed Jul 15, 2019
1 parent 6c7f831 commit 1c68fb8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/demo.sh
Expand Up @@ -4,23 +4,26 @@

ALGO="--real-pbft"
NOW=`date "+%Y-%m-%d 00:00:00"`
NETARGS="--system-start \"${NOW}\" --slot-duration 2 node -t configuration/simple-topology.json ${ALGO}"
NETARGS="--system-start \"${NOW}\" --slot-duration 4 node -t configuration/simple-topology.json ${ALGO}"
#SCR="./scripts/start-node.sh"
CMD="stack exec --nix cardano-node --"
CMD="stack exec cardano-node --"
HOST="127.0.0.1"

function mklogcfg () {
echo "--log-config configuration/log-config-${1}.yaml"
}

tmux split-window -h
rm -rf db-0 db-1 db-2
tmux split-window -v
tmux split-window -v
tmux select-pane -t 0
tmux split-window -v
tmux select-layout even-vertical

tmux select-pane -t 0
tmux send-keys "${CMD} $(mklogcfg 0) ${NETARGS} -n 0 --host ${HOST} --port 3000" C-m
tmux select-pane -t 1
tmux send-keys "${CMD} $(mklogcfg 1) ${NETARGS} -n 1 --host ${HOST} --port 3001" C-m
tmux select-pane -t 2
tmux send-keys "${CMD} $(mklogcfg 2) ${NETARGS} -n 2 --host ${HOST} --port 3002" C-m
tmux select-pane -t 3
tmux send-keys "./scripts/submit-tx.sh -n 0 --real-pbft --address a --amount 4000 --txin abababab --txix 0"

0 comments on commit 1c68fb8

Please sign in to comment.