script/research/fud: created localnet folder for testing

This commit is contained in:
aggstam
2022-08-20 18:12:35 +03:00
parent 62d2d07b8d
commit 224eb1413c
6 changed files with 110 additions and 0 deletions

View File

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

View File

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

View File

@@ -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 = []

View File

@@ -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 = []

View File

@@ -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 = []

View File

@@ -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