Skip to content

Commit

Permalink
Update nix/cardano-node-service.nix with tracing arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Dec 23, 2019
1 parent 4d9a174 commit 91780d0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
7 changes: 6 additions & 1 deletion nix/nixos/cardano-node-service.nix
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,12 @@ in {

extraArgs = mkOption {
type = types.listOf types.str;
default = [];
default = [ "--tracing-verbosity-maximal"
"--trace-block-fetch-decisions"
"--trace-chain-db"
"--trace-mempool"
"--trace-forge"
];
description = ''Extra CLI args for 'cardano-node'.'';
};

Expand Down
23 changes: 19 additions & 4 deletions scripts/shelley-testnet2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,22 @@ set -e
# CMD="stack exec --nix cardano-node --"
CMD="cabal v2-run --"
# EXTRA="--live-view"
EXTRA=""
EXTRA="
--trace-block-fetch-decisions
--trace-block-fetch-client
--trace-block-fetch-server
--trace-chain-db
--trace-tx-inbound
--trace-tx-outbound
--trace-local-tx-submission-server
--trace-mempool
--trace-forge
--trace-chain-sync-protocol
--trace-block-fetch-protocol
--trace-tx-submission-protocol
--trace-local-chain-sync-protocol
--trace-local-tx-submission-protocol
"

. $(dirname $0)/lib-node.sh

Expand All @@ -31,8 +46,8 @@ tmux select-pane -t 4
tmux send-keys "cd '${PWD}'; ${CMD} trace-acceptor $(acceptorargs)" C-m
sleep 2
tmux select-pane -t 1
tmux send-keys "cd '${PWD}'; ${CMD} exe:cardano-node $(nodeargs 0 " ${EXTRA}")" C-m
tmux send-keys "cd '${PWD}'; ${CMD} exe:cardano-node $(nodeargs 0 "${ALGO} $(echo -n ${EXTRA})") " C-m
tmux select-pane -t 2
tmux send-keys "cd '${PWD}'; ${CMD} exe:cardano-node $(nodeargs 1 " ${EXTRA}")" C-m
tmux send-keys "cd '${PWD}'; ${CMD} exe:cardano-node $(nodeargs 1 "${ALGO} $(echo -n ${EXTRA})") " C-m
tmux select-pane -t 3
tmux send-keys "cd '${PWD}'; ${CMD} exe:cardano-node $(nodeargs 2 " ${EXTRA}")" C-m
tmux send-keys "cd '${PWD}'; ${CMD} exe:cardano-node $(nodeargs 2 "${ALGO} $(echo -n ${EXTRA})") " C-m

0 comments on commit 91780d0

Please sign in to comment.