mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -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 five minerd daemons and five darkfid nodes
|
||||
|
||||
# Path to used binaries
|
||||
MINERD="../../../minerd"
|
||||
DARKFID="LOG_TARGETS='!runtime,!sled' ../../../darkfid"
|
||||
|
||||
session=darkfid-five-nodes
|
||||
|
||||
if [ "$1" = "-vv" ]; then
|
||||
@@ -12,33 +16,33 @@ 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 "../../../minerd ${verbose} -c minerd2.toml" Enter
|
||||
tmux new-window -t $session -n "node2"
|
||||
tmux send-keys -t $session "$MINERD $verbose -c minerd2.toml" Enter
|
||||
sleep 1
|
||||
tmux split-window -t $session -v -l 90%
|
||||
tmux send-keys -t $session "LOG_TARGETS='!sled,!runtime' ../../../darkfid ${verbose} -c darkfid2.toml" Enter
|
||||
tmux send-keys -t $session "$DARKFID $verbose -c darkfid2.toml" Enter
|
||||
sleep 2
|
||||
tmux new-window -t $session
|
||||
tmux send-keys -t $session "../../../minerd ${verbose} -c minerd3.toml" Enter
|
||||
tmux new-window -t $session -n "node3"
|
||||
tmux send-keys -t $session "$MINERD $verbose -c minerd3.toml" Enter
|
||||
sleep 1
|
||||
tmux split-window -t $session -v -l 90%
|
||||
tmux send-keys -t $session "LOG_TARGETS='!sled,!runtime' ../../../darkfid ${verbose} -c darkfid3.toml" Enter
|
||||
tmux send-keys -t $session "$DARKFID $verbose -c darkfid3.toml" Enter
|
||||
sleep 2
|
||||
tmux new-window -t $session
|
||||
tmux send-keys -t $session "../../../minerd ${verbose} -c minerd4.toml" Enter
|
||||
tmux new-window -t $session -n "node4"
|
||||
tmux send-keys -t $session "$MINERD $verbose -c minerd4.toml" Enter
|
||||
sleep 1
|
||||
tmux split-window -t $session -v -l 90%
|
||||
tmux send-keys -t $session "LOG_TARGETS='!sled,!runtime' ../../../darkfid ${verbose} -c darkfid4.toml" Enter
|
||||
tmux send-keys -t $session "$DARKFID $verbose -c darkfid4.toml" Enter
|
||||
tmux attach -t $session
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
5
contrib/localnet/darkirc-four-nodes/.gitignore
vendored
Normal file
5
contrib/localnet/darkirc-four-nodes/.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
seed
|
||||
darkirc1
|
||||
darkirc2
|
||||
darkirc3
|
||||
darkirc4
|
||||
3
contrib/localnet/darkirc-four-nodes/clean.sh
Executable file
3
contrib/localnet/darkirc-four-nodes/clean.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
rm -rf seed darkirc1 darkirc2 darkirc3 darkirc4
|
||||
|
||||
@@ -5,7 +5,7 @@ rpc_listen = "tcp://127.0.0.1:8890"
|
||||
irc_listen = "tcp://127.0.0.1:22022"
|
||||
|
||||
## Sets Datastore Path
|
||||
datastore = "/tmp/darkirc_test/darkirc1"
|
||||
datastore = "darkirc1"
|
||||
|
||||
## List of channels to autojoin for new client connections
|
||||
autojoin = ["#dev", "#test"]
|
||||
@@ -36,7 +36,7 @@ seeds = ["tcp://127.0.0.1:25551"]
|
||||
allowed_transports = ["tcp"]
|
||||
|
||||
localnet = true
|
||||
hostlist = "/tmp/darkirc_test/darkirc1-host.tsv"
|
||||
hostlist = "darkirc1/hostlist.tsv"
|
||||
|
||||
#
|
||||
# [channel."#dev"]
|
||||
|
||||
@@ -5,7 +5,7 @@ rpc_listen = "tcp://127.0.0.1:8891"
|
||||
irc_listen = "tcp://127.0.0.1:22023"
|
||||
|
||||
## Sets Datastore Path
|
||||
datastore = "/tmp/darkirc_test/darkirc2"
|
||||
datastore = "darkirc2"
|
||||
|
||||
## List of channels to autojoin for new client connections
|
||||
autojoin = ["#dev", "#test"]
|
||||
@@ -36,7 +36,7 @@ seeds = ["tcp://127.0.0.1:25551"]
|
||||
allowed_transports = ["tcp"]
|
||||
|
||||
localnet = true
|
||||
hostlist = "/tmp/darkirc_test/darkirc2-host.tsv"
|
||||
hostlist = "darkirc2/hostlist.tsv"
|
||||
|
||||
#
|
||||
# [channel."#dev"]
|
||||
|
||||
@@ -5,7 +5,7 @@ rpc_listen = "tcp://127.0.0.1:8892"
|
||||
irc_listen = "tcp://127.0.0.1:22024"
|
||||
|
||||
## Sets Datastore Path
|
||||
datastore = "/tmp/darkirc_test/darkirc3"
|
||||
datastore = "darkirc3"
|
||||
|
||||
## List of channels to autojoin for new client connections
|
||||
autojoin = ["#dev", "#test"]
|
||||
@@ -36,7 +36,7 @@ seeds = ["tcp://127.0.0.1:25551"]
|
||||
allowed_transports = ["tcp"]
|
||||
|
||||
localnet = true
|
||||
hostlist = "/tmp/darkirc_test/darkirc3-host.tsv"
|
||||
hostlist = "darkirc3/hostlist.tsv"
|
||||
|
||||
#
|
||||
# [channel."#dev"]
|
||||
|
||||
@@ -5,7 +5,7 @@ rpc_listen = "tcp://127.0.0.1:8893"
|
||||
irc_listen = "tcp://127.0.0.1:22025"
|
||||
|
||||
## Sets Datastore Path
|
||||
datastore = "/tmp/darkirc_test/darkirc4"
|
||||
datastore = "darkirc4"
|
||||
|
||||
## List of channels to autojoin for new client connections
|
||||
autojoin = ["#dev", "#test"]
|
||||
@@ -36,7 +36,7 @@ seeds = ["tcp://127.0.0.1:25551"]
|
||||
allowed_transports = ["tcp"]
|
||||
|
||||
localnet = true
|
||||
hostlist = "/tmp/darkirc_test/darkirc4-host.tsv"
|
||||
hostlist = "darkirc4/hostlist.tsv"
|
||||
|
||||
#
|
||||
# [channel."#dev"]
|
||||
|
||||
@@ -5,7 +5,7 @@ rpc_listen="tcp://127.0.0.1:8888"
|
||||
irc_listen="tcp://127.0.0.1:22020"
|
||||
|
||||
## Sets Datastore Path
|
||||
datastore = "/tmp/darkirc_test/darkirc_seed"
|
||||
datastore = "seed"
|
||||
|
||||
## List of channels to autojoin for new client connections
|
||||
autojoin = ["#dev"]
|
||||
@@ -36,7 +36,7 @@ inbound = ["tcp://127.0.0.1:25551"]
|
||||
allowed_transports = ["tcp"]
|
||||
|
||||
localnet = true
|
||||
hostlist = "/tmp/darkirc_test/darkirc-seed-host.tsv"
|
||||
hostlist = "seed/hostlist.tsv"
|
||||
|
||||
## Seed nodes to connect to
|
||||
# seeds = ["tcp://127.0.0.1:25551", "tls://lilith1.dark.fi:25551"]
|
||||
|
||||
@@ -1,30 +1,42 @@
|
||||
#!/bin/sh
|
||||
# Start a tmux session of four darkirc nodes, and optionally four weechat clients.
|
||||
set -e
|
||||
|
||||
tmux new-session -s "darkirc" -n "darkirc" -d
|
||||
tmux send-keys "../../../darkirc --config seed.toml --skip-dag-sync" Enter && sleep 1
|
||||
tmux split-window -h
|
||||
tmux send-keys "../../../darkirc --config darkirc_full_node1.toml --skip-dag-sync" Enter && sleep 1
|
||||
tmux split-window -h
|
||||
tmux send-keys "../../../darkirc --config darkirc_full_node2.toml" Enter
|
||||
tmux select-pane -t 0
|
||||
tmux split-window -v
|
||||
tmux send-keys "../../../darkirc --config darkirc_full_node3.toml" Enter
|
||||
tmux select-pane -t 2
|
||||
tmux split-window -v
|
||||
tmux send-keys "../../../darkirc --config darkirc_full_node4.toml" Enter
|
||||
# Start a tmux session of four darkirc nodes, and optionally four weechat clients.
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
tmux new-window -t "darkirc:1" -n "weechat"
|
||||
tmux send-keys "weechat -t -r '/server add darkirc_a 127.0.0.1/22022 -notls;/connect darkirc_a;/set irc.server_default.nicks Alice'" Enter
|
||||
tmux split-window -v
|
||||
tmux send-keys "weechat -t -r '/server add darkirc_b 127.0.0.1/22023 -notls;/connect darkirc_b;/set irc.server_default.nicks Bob'" Enter
|
||||
tmux split-window -h
|
||||
tmux send-keys "weechat -t -r '/server add darkirc_c 127.0.0.1/22024 -notls;/connect darkirc_c;/set irc.server_default.nicks Charlie'" Enter
|
||||
tmux select-pane -t 0
|
||||
tmux split-window -h
|
||||
tmux send-keys "weechat -t -r '/server add darkirc_d 127.0.0.1/22025 -notls;/connect darkirc_d;/set irc.server_default.nicks Dave'" Enter
|
||||
# Path to used binaries
|
||||
DARKIRC="../../../darkirc"
|
||||
WEECHAT="weechat -t -r"
|
||||
|
||||
session=darkirc
|
||||
|
||||
tmux new-session -d -s $session -n "seed"
|
||||
tmux send-keys -t $session "$DARKIRC -c seed.toml --skip-dag-sync" Enter
|
||||
sleep 1
|
||||
tmux new-window -t $session -n "node1"
|
||||
tmux send-keys -t $session "$DARKIRC -c darkirc_full_node1.toml --skip-dag-sync" Enter
|
||||
if [ "$1" ]; then
|
||||
tmux split-window -t $session -v
|
||||
tmux send-keys -t $session "$WEECHAT '/server add darkirc_a 127.0.0.1/22022 -notls;/connect darkirc_a;/set irc.server_default.nicks Alice'" Enter
|
||||
fi
|
||||
|
||||
tmux attach
|
||||
sleep 1
|
||||
tmux new-window -t $session -n "node2"
|
||||
tmux send-keys -t $session "$DARKIRC -c darkirc_full_node2.toml" Enter
|
||||
if [ "$1" ]; then
|
||||
tmux split-window -t $session -v
|
||||
tmux send-keys -t $session "$WEECHAT '/server add darkirc_b 127.0.0.1/22023 -notls;/connect darkirc_b;/set irc.server_default.nicks Bob'" Enter
|
||||
fi
|
||||
sleep 1
|
||||
tmux new-window -t $session -n "node3"
|
||||
tmux send-keys -t $session "$DARKIRC -c darkirc_full_node3.toml" Enter
|
||||
if [ "$1" ]; then
|
||||
tmux split-window -t $session -v
|
||||
tmux send-keys -t $session "$WEECHAT '/server add darkirc_c 127.0.0.1/22024 -notls;/connect darkirc_c;/set irc.server_default.nicks Charlie'" Enter
|
||||
fi
|
||||
sleep 1
|
||||
tmux new-window -t $session -n "node4"
|
||||
tmux send-keys -t $session "$DARKIRC -c darkirc_full_node4.toml" Enter
|
||||
if [ "$1" ]; then
|
||||
tmux split-window -t $session -v
|
||||
tmux send-keys -t $session "$WEECHAT '/server add darkirc_d 127.0.0.1/22025 -notls;/connect darkirc_d;/set irc.server_default.nicks Dave'" Enter
|
||||
fi
|
||||
tmux attach -t $session
|
||||
|
||||
1
contrib/localnet/dchatd-four-nodes/.gitignore
vendored
Normal file
1
contrib/localnet/dchatd-four-nodes/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
logs
|
||||
2
contrib/localnet/dchatd-four-nodes/clean.sh
Executable file
2
contrib/localnet/dchatd-four-nodes/clean.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
rm -rf logs
|
||||
@@ -1,18 +1,34 @@
|
||||
#!/bin/sh
|
||||
# Start a tmux session of four dchatd nodes.
|
||||
set -e
|
||||
|
||||
tmux new-session -s "dchatd" -n "dchatd" -d
|
||||
tmux send-keys "../../../target/release/dchatd --config seed.toml -vv 2>&1 | tee seed.log" Enter && sleep 1
|
||||
tmux split-window -h
|
||||
tmux send-keys "../../../target/release/dchatd --config dchat1.toml -vv 2>&1 | tee dchat1.log" Enter && sleep 1
|
||||
tmux split-window -h
|
||||
tmux send-keys "../../../target/release/dchatd --config dchat2.toml -vv 2>&1 | tee dchat2.log" Enter
|
||||
tmux select-pane -t 0
|
||||
tmux split-window -v
|
||||
tmux send-keys "../../../target/release/dchatd --config dchat3.toml -vv 2>&1 | tee dchat3.log" Enter
|
||||
tmux select-pane -t 2
|
||||
tmux split-window -v
|
||||
tmux send-keys "../../../target/release/dchatd --config dchat4.toml -vv 2>&1 | tee dchat4.log" Enter
|
||||
# Start a tmux session of four dchatd nodes.
|
||||
|
||||
tmux attach
|
||||
# Path to `dchat` binary
|
||||
DCHATD="../../../target/release/dchatd"
|
||||
|
||||
session=dchatd
|
||||
|
||||
if [ "$1" = "-vv" ]; then
|
||||
verbose="-vv"
|
||||
shift
|
||||
else
|
||||
verbose=""
|
||||
fi
|
||||
|
||||
mkdir -p logs
|
||||
|
||||
tmux new-session -d -s $session -n "seed"
|
||||
tmux send-keys -t $session "$DCHATD $verbose -c seed.toml 2>&1 | tee logs/seed.log" Enter
|
||||
sleep 1
|
||||
tmux new-window -t $session -n "node1"
|
||||
tmux send-keys -t $session "$DCHATD $verbose -c dchat1.toml 2>&1 | tee logs/dchat1.log" Enter
|
||||
sleep 1
|
||||
tmux new-window -t $session -n "node2"
|
||||
tmux send-keys -t $session "$DCHATD $verbose -c dchat2.toml 2>&1 | tee logs/dchat2.log" Enter
|
||||
sleep 1
|
||||
tmux new-window -t $session -n "node3"
|
||||
tmux send-keys -t $session "$DCHATD $verbose -c dchat3.toml 2>&1 | tee logs/dchat3.log" Enter
|
||||
sleep 1
|
||||
tmux new-window -t $session -n "node4"
|
||||
tmux send-keys -t $session "$DCHATD $verbose -c dchat4.toml 2>&1 | tee logs/dchat4.log" Enter
|
||||
tmux attach -t $session
|
||||
|
||||
3
contrib/localnet/fud/.gitignore
vendored
Normal file
3
contrib/localnet/fud/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
fud0
|
||||
fud1
|
||||
lilith_hosts.tsv
|
||||
@@ -3,19 +3,25 @@ set -e
|
||||
|
||||
# Start a tmux session with a lilith node and two fud nodes.
|
||||
|
||||
if [ "$1" = "-v" ]; then
|
||||
verbose="-v"
|
||||
# Path to used binaries
|
||||
LILITH="../../../lilith -c lilith_config.toml"
|
||||
FUD="../../../fud"
|
||||
|
||||
session=fud
|
||||
|
||||
if [ "$1" = "-vv" ]; then
|
||||
verbose="-vv"
|
||||
shift
|
||||
else
|
||||
verbose=""
|
||||
fi
|
||||
|
||||
tmux new-session -d
|
||||
tmux send-keys "../../../lilith ${verbose} -c lilith_config.toml" Enter
|
||||
tmux new-session -d -s $session -n "lilith"
|
||||
tmux send-keys -t $session "$LILITH $verbose" Enter
|
||||
sleep 2
|
||||
tmux split-window -v
|
||||
tmux send-keys "../../../fud ${verbose} -c fud_config0.toml" Enter
|
||||
tmux new-window -t $session -n "node0"
|
||||
tmux send-keys -t $session "$FUD $verbose -c fud_config0.toml" Enter
|
||||
sleep 2
|
||||
tmux select-pane -t 1
|
||||
tmux split-window -h
|
||||
tmux send-keys "../../../fud ${verbose} -c fud_config1.toml" Enter
|
||||
tmux attach
|
||||
tmux new-window -t $session -n "node1"
|
||||
tmux send-keys -t $session "$FUD $verbose -c fud_config1.toml" Enter
|
||||
tmux attach -t $session
|
||||
|
||||
5
contrib/localnet/taud-four-nodes/.gitignore
vendored
Normal file
5
contrib/localnet/taud-four-nodes/.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
seed
|
||||
taud1
|
||||
taud2
|
||||
taud3
|
||||
taud4
|
||||
3
contrib/localnet/taud-four-nodes/clean.sh
Executable file
3
contrib/localnet/taud-four-nodes/clean.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
rm -rf seed taud1 taud2 taud3 taud4
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
rpc_listen="tcp://127.0.0.1:23340"
|
||||
|
||||
## Datastore Path
|
||||
datastore = "/tmp/taud/taud_db_seed"
|
||||
datastore = "seed"
|
||||
|
||||
## Sets DB logs replay datastore path
|
||||
#replay_datastore = "~/.local/darkfi/replayed_taud_db"
|
||||
@@ -49,7 +49,7 @@ write_public_key = "CAX5qCXCTGwqT27ixzdgm4H54kbh2HtrXbzj9odAyjxh"
|
||||
# P2P network settings
|
||||
[net]
|
||||
# Path to a configured hostlist for saving known peers
|
||||
hostlist = "/tmp/taud_hostlist_seed.tsv"
|
||||
hostlist = "seed/hostlist.tsv"
|
||||
|
||||
## P2P accept addresses
|
||||
inbound = ["tcp://127.0.0.1:23331"]
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
rpc_listen="tcp://127.0.0.1:23341"
|
||||
|
||||
## Datastore Path
|
||||
datastore = "/tmp/taud/taud_db_node1"
|
||||
datastore = "taud1"
|
||||
|
||||
## Sets DB logs replay datastore path
|
||||
#replay_datastore = "~/.local/darkfi/replayed_taud_db"
|
||||
@@ -49,7 +49,7 @@ write_key = "nGpVmGTNjfvJ9ojqijQwUMsbjrzaqHK5RniGAx9LTJfm49QcGY48RCaJ6riePvtr7xw
|
||||
# P2P network settings
|
||||
[net]
|
||||
# Path to a configured hostlist for saving known peers
|
||||
hostlist = "/tmp/taud_hostlist_node1.tsv"
|
||||
hostlist = "taud1/hostlist.tsv"
|
||||
|
||||
## P2P accept addresses
|
||||
inbound = ["tcp://127.0.0.1:23332"]
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
rpc_listen="tcp://127.0.0.1:23342"
|
||||
|
||||
## Datastore Path
|
||||
datastore = "/tmp/taud/taud_db_node2"
|
||||
datastore = "taud2"
|
||||
|
||||
## Sets DB logs replay datastore path
|
||||
#replay_datastore = "~/.local/darkfi/replayed_taud_db"
|
||||
@@ -49,7 +49,7 @@ write_key = "nGpVmGTNjfvJ9ojqijQwUMsbjrzaqHK5RniGAx9LTJfm49QcGY48RCaJ6riePvtr7xw
|
||||
# P2P network settings
|
||||
[net]
|
||||
# Path to a configured hostlist for saving known peers
|
||||
hostlist = "/tmp/taud_hostlist_node2.tsv"
|
||||
hostlist = "taud2/hostlist.tsv"
|
||||
|
||||
## P2P accept addresses
|
||||
inbound = ["tcp://127.0.0.1:23333"]
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
rpc_listen="tcp://127.0.0.1:23343"
|
||||
|
||||
## Datastore Path
|
||||
datastore = "/tmp/taud/taud_db_node3"
|
||||
datastore = "taud3"
|
||||
|
||||
## Sets DB logs replay datastore path
|
||||
#replay_datastore = "~/.local/darkfi/replayed_taud_db"
|
||||
@@ -49,7 +49,7 @@ write_key = "nGpVmGTNjfvJ9ojqijQwUMsbjrzaqHK5RniGAx9LTJfm49QcGY48RCaJ6riePvtr7xw
|
||||
# P2P network settings
|
||||
[net]
|
||||
# Path to a configured hostlist for saving known peers
|
||||
hostlist = "/tmp/taud_hostlist_node3.tsv"
|
||||
hostlist = "taud3/hostlist.tsv"
|
||||
|
||||
## P2P accept addresses
|
||||
inbound = ["tcp://127.0.0.1:23334"]
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
rpc_listen="tcp://127.0.0.1:23344"
|
||||
|
||||
## Datastore Path
|
||||
datastore = "/tmp/taud/taud_db_node4"
|
||||
datastore = "taud4"
|
||||
|
||||
## Sets DB logs replay datastore path
|
||||
#replay_datastore = "~/.local/darkfi/replayed_taud_db"
|
||||
@@ -49,7 +49,7 @@ write_public_key = "CAX5qCXCTGwqT27ixzdgm4H54kbh2HtrXbzj9odAyjxh"
|
||||
# P2P network settings
|
||||
[net]
|
||||
# Path to a configured hostlist for saving known peers
|
||||
hostlist = "/tmp/taud_hostlist_node4.tsv"
|
||||
hostlist = "taud4/hostlist.tsv"
|
||||
|
||||
## P2P accept addresses
|
||||
inbound = ["tcp://127.0.0.1:23335"]
|
||||
|
||||
@@ -1,30 +1,46 @@
|
||||
#!/bin/sh
|
||||
# Start a tmux session of four taud nodes, and four tau clients.
|
||||
set -e
|
||||
|
||||
tmux new-session -s "taud" -n "taud" -d
|
||||
tmux send-keys "../../../taud --config seed.toml --skip-dag-sync" Enter && sleep 1
|
||||
tmux split-window -h
|
||||
tmux send-keys "../../../taud --config taud_full_node1.toml --skip-dag-sync" Enter && sleep 1
|
||||
tmux split-window -h
|
||||
tmux send-keys "../../../taud --config taud_full_node2.toml" Enter
|
||||
tmux select-pane -t 0
|
||||
tmux split-window -v
|
||||
tmux send-keys "../../../taud --config taud_full_node3.toml" Enter
|
||||
tmux select-pane -t 2
|
||||
tmux split-window -v
|
||||
tmux send-keys "../../../taud --config taud_full_node4.toml" Enter
|
||||
# Start a tmux session of four taud nodes, and four tau clients.
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
tmux new-window -t "taud:1" -n "tau"
|
||||
tmux send-keys "tau -e 127.0.0.1:23341" Enter
|
||||
tmux split-window -v
|
||||
tmux send-keys "tau -e 127.0.0.1:23342" Enter
|
||||
tmux split-window -h
|
||||
tmux send-keys "tau -e 127.0.0.1:23343" Enter
|
||||
tmux select-pane -t 0
|
||||
tmux split-window -h
|
||||
tmux send-keys "tau -e 127.0.0.1:23344" Enter
|
||||
# Path to used binaries
|
||||
TAUD="../../../taud"
|
||||
TAU_CLI="../../../bin/tau/tau-python"
|
||||
TAU="python $TAU_CLI/tau"
|
||||
|
||||
# Source tau-cli python venv
|
||||
. $TAU_CLI/venv/bin/activate
|
||||
|
||||
session=taud
|
||||
|
||||
tmux new-session -d -s $session -n "seed"
|
||||
tmux send-keys -t $session "$TAUD --config seed.toml --skip-dag-sync" Enter
|
||||
sleep 1
|
||||
tmux new-window -t $session -n "node1"
|
||||
tmux send-keys -t $session "$TAUD --config taud_full_node1.toml --skip-dag-sync" Enter
|
||||
if [ "$1" ]; then
|
||||
tmux split-window -t $session -v
|
||||
tmux send-keys -t $session "$TAU -e 127.0.0.1:23341" Enter
|
||||
fi
|
||||
|
||||
tmux attach
|
||||
sleep 1
|
||||
tmux new-window -t $session -n "node2"
|
||||
tmux send-keys -t $session "$TAUD --config taud_full_node2.toml" Enter
|
||||
if [ "$1" ]; then
|
||||
tmux split-window -t $session -v
|
||||
tmux send-keys -t $session "$TAU -e 127.0.0.1:23342" Enter
|
||||
fi
|
||||
sleep 1
|
||||
tmux new-window -t $session -n "node3"
|
||||
tmux send-keys -t $session "$TAUD --config taud_full_node3.toml" Enter
|
||||
if [ "$1" ]; then
|
||||
tmux split-window -t $session -v
|
||||
tmux send-keys -t $session "$TAU -e 127.0.0.1:23343" Enter
|
||||
fi
|
||||
sleep 1
|
||||
tmux new-window -t $session -n "node4"
|
||||
tmux send-keys -t $session "$TAUD --config taud_full_node4.toml" Enter
|
||||
if [ "$1" ]; then
|
||||
tmux split-window -t $session -v
|
||||
tmux send-keys -t $session "$TAU -e 127.0.0.1:23344" Enter
|
||||
fi
|
||||
tmux attach -t $session
|
||||
|
||||
Reference in New Issue
Block a user