mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 14:48:08 -05:00
script/research/fud: created localnet folder for testing
This commit is contained in:
1
script/research/fud/localnet/fud0/node0
Normal file
1
script/research/fud/localnet/fud0/node0
Normal file
@@ -0,0 +1 @@
|
||||
Hello from node 0
|
||||
1
script/research/fud/localnet/fud1/node1
Normal file
1
script/research/fud/localnet/fud1/node1
Normal file
@@ -0,0 +1 @@
|
||||
Hello from node 1
|
||||
28
script/research/fud/localnet/fud_config0.toml
Normal file
28
script/research/fud/localnet/fud_config0.toml
Normal 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 = []
|
||||
28
script/research/fud/localnet/fud_config1.toml
Normal file
28
script/research/fud/localnet/fud_config1.toml
Normal 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 = []
|
||||
36
script/research/fud/localnet/lilith_config.toml
Normal file
36
script/research/fud/localnet/lilith_config.toml
Normal 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 = []
|
||||
16
script/research/fud/localnet/tmux_sessions.sh
Executable file
16
script/research/fud/localnet/tmux_sessions.sh
Executable 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
|
||||
Reference in New Issue
Block a user