Browse Source

script/research/fud: created localnet folder for testing

aggstam 4 years ago
parent
commit
224eb1413c

+ 1 - 0
script/research/fud/localnet/fud0/node0

@@ -0,0 +1 @@
+Hello from node 0

+ 1 - 0
script/research/fud/localnet/fud1/node1

@@ -0,0 +1 @@
+Hello from node 1

+ 28 - 0
script/research/fud/localnet/fud_config0.toml

@@ -0,0 +1,28 @@
+## fud configuration file
+##
+## Please make sure you go through all the settings so you can configure
+## your daemon properly.
+##
+## The default values are left commented. They can be overridden either by
+## uncommenting, or by using the command-line.
+
+# Path to the contents directory
+folder = "fud0"
+
+# JSON-RPC listen URL
+rpc_listen = "tls://127.0.0.1:13338"
+
+# P2P accept address
+p2p_accept = "tls://127.0.0.1:13339"
+
+# P2P external address
+p2p_external = "tls://127.0.0.1:13339"
+
+# Connection slots
+#slots = 8
+
+# Seed nodes to connect to
+seeds = ["tls://127.0.0.1:13337"]
+
+# Peers to connect to
+#peers = []

+ 28 - 0
script/research/fud/localnet/fud_config1.toml

@@ -0,0 +1,28 @@
+## fud configuration file
+##
+## Please make sure you go through all the settings so you can configure
+## your daemon properly.
+##
+## The default values are left commented. They can be overridden either by
+## uncommenting, or by using the command-line.
+
+# Path to the contents directory
+folder = "fud1"
+
+# JSON-RPC listen URL
+rpc_listen = "tls://127.0.0.1:13340"
+
+# P2P accept address
+p2p_accept = "tls://127.0.0.1:13341"
+
+# P2P external address
+p2p_external = "tls://127.0.0.1:13341"
+
+# Connection slots
+#slots = 8
+
+# Seed nodes to connect to
+seeds = ["tls://127.0.0.1:13337"]
+
+# Peers to connect to
+#peers = []

+ 36 - 0
script/research/fud/localnet/lilith_config.toml

@@ -0,0 +1,36 @@
+## lilith configuration file
+##
+## Please make sure you go through all the settings so you can configure
+## your daemon properly.
+##
+## The default values are left commented. They can be overridden either by
+## uncommenting, or by using the command-line.
+
+# Daemon published url, common for all enabled networks
+url = "tls://127.0.0.1"
+
+## Per-network settings
+#[network."darkfid_sync"]
+#port = 33032
+#seeds = []
+#peers = []
+
+#[network."darkfid_consensus"]
+#port = 33033
+#seeds = []
+#peers = []
+
+#[network."ircd"]
+#port = 25551
+#seeds = []
+#peers = []
+
+#[network."taud"]
+#port = 23331
+#seeds = []
+#peers = []
+
+[network."fud"]
+port = 13337
+#seeds = []
+#peers = []

+ 16 - 0
script/research/fud/localnet/tmux_sessions.sh

@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+
+# Start a tmux session with a lilith node and two fud nodes.
+
+tmux new-session -d
+tmux new-session -d
+tmux send-keys "../../../../lilith -c lilith_config.toml" Enter
+sleep 2
+tmux split-window -v
+tmux send-keys "../fud/target/debug/fud -c fud_config0.toml" Enter
+sleep 2
+tmux select-pane -t 1
+tmux split-window -h
+tmux send-keys "../fud/target/debug/fud -c fud_config1.toml" Enter
+tmux attach