Sfoglia il codice sorgente

contrib/localnet: DEP-0007: add network profiles to net setting section of the toml configs

oars 1 anno fa
parent
commit
9cce43b5bf

+ 6 - 5
contrib/localnet/darkfid-five-nodes/darkfid0.toml

@@ -50,11 +50,12 @@ rpc_listen = "tcp://127.0.0.1:48241"
 
 ## Localnet P2P network settings
 [network_config."localnet".net]
-# P2P accept addresses the instance listens on for inbound connections
-inbound = ["tcp+tls://0.0.0.0:48242"]
+# Allow localnet hosts
+localnet = true
 
 # Whitelisted network transports for outbound connections
-allowed_transports = ["tcp+tls"]
+active_profiles = ["tcp+tls"]
 
-# Allow localnet hosts
-localnet = true
+[network_config."localnet".net.profiles."tcp+tls"]
+# P2P accept addresses the instance listens on for inbound connections
+inbound = ["tcp+tls://0.0.0.0:48242"]

+ 7 - 6
contrib/localnet/darkfid-five-nodes/darkfid1.toml

@@ -50,14 +50,15 @@ rpc_listen = "tcp://127.0.0.1:48341"
 
 ## Localnet P2P network settings
 [network_config."localnet".net]
-# P2P accept addresses the instance listens on for inbound connections
-inbound = ["tcp+tls://0.0.0.0:48342"]
+# Allow localnet hosts
+localnet = true
 
 # Whitelisted network transports for outbound connections
-allowed_transports = ["tcp+tls"]
+active_profiles = ["tcp+tls"]
+
+[network_config."localnet".net.profiles."tcp+tls"]
+# P2P accept addresses the instance listens on for inbound connections
+inbound = ["tcp+tls://0.0.0.0:48342"]
 
 # Peer nodes to manually connect to
 peers = ["tcp+tls://0.0.0.0:48242"]
-
-# Allow localnet hosts
-localnet = true

+ 7 - 6
contrib/localnet/darkfid-five-nodes/darkfid2.toml

@@ -50,14 +50,15 @@ rpc_listen = "tcp://127.0.0.1:48441"
 
 ## Localnet P2P network settings
 [network_config."localnet".net]
-# P2P accept addresses the instance listens on for inbound connections
-inbound = ["tcp+tls://0.0.0.0:48442"]
+# Allow localnet hosts
+localnet = true
 
 # Whitelisted network transports for outbound connections
-allowed_transports = ["tcp+tls"]
+active_profiles = ["tcp+tls"]
+
+[network_config."localnet".net.profiles."tcp+tls"]
+# P2P accept addresses the instance listens on for inbound connections
+inbound = ["tcp+tls://0.0.0.0:48442"]
 
 # Peer nodes to manually connect to
 peers = ["tcp+tls://0.0.0.0:48242", "tcp+tls://0.0.0.0:48342"]
-
-# Allow localnet hosts
-localnet = true

+ 7 - 6
contrib/localnet/darkfid-five-nodes/darkfid3.toml

@@ -50,14 +50,15 @@ rpc_listen = "tcp://127.0.0.1:48541"
 
 ## Localnet P2P network settings
 [network_config."localnet".net]
-# P2P accept addresses the instance listens on for inbound connections
-inbound = ["tcp+tls://0.0.0.0:48542"]
+# Allow localnet hosts
+localnet = true
 
 # Whitelisted network transports for outbound connections
-allowed_transports = ["tcp+tls"]
+active_profiles = ["tcp+tls"]
+
+[network_config."localnet".net.profiles."tcp+tls"]
+# P2P accept addresses the instance listens on for inbound connections
+inbound = ["tcp+tls://0.0.0.0:48542"]
 
 # Peer nodes to manually connect to
 peers = ["tcp+tls://0.0.0.0:48242", "tcp+tls://0.0.0.0:48342", "tcp+tls://0.0.0.0:48442"]
-
-# Allow localnet hosts
-localnet = true

+ 7 - 6
contrib/localnet/darkfid-five-nodes/darkfid4.toml

@@ -50,14 +50,15 @@ rpc_listen = "tcp://127.0.0.1:48641"
 
 ## Localnet P2P network settings
 [network_config."localnet".net]
-# P2P accept addresses the instance listens on for inbound connections
-inbound = ["tcp+tls://0.0.0.0:48642"]
+# Allow localnet hosts
+localnet = true
 
 # Whitelisted network transports for outbound connections
-allowed_transports = ["tcp+tls"]
+active_profiles = ["tcp+tls"]
+
+[network_config."localnet".net.profiles."tcp+tls"]
+# P2P accept addresses the instance listens on for inbound connections
+inbound = ["tcp+tls://0.0.0.0:48642"]
 
 # Peer nodes to manually connect to
 peers = ["tcp+tls://0.0.0.0:48242", "tcp+tls://0.0.0.0:48342", "tcp+tls://0.0.0.0:48442", "tcp+tls://0.0.0.0:48542"]
-
-# Allow localnet hosts
-localnet = true

+ 7 - 3
contrib/localnet/darkfid-single-node/darkfid.toml

@@ -61,8 +61,12 @@ rpc_listen = "tcp://127.0.0.1:48241"
 
 ## Localnet P2P network settings
 [network_config."localnet".net]
-# P2P accept addresses the instance listens on for inbound connections
-inbound = ["tcp+tls://0.0.0.0:48242"]
-
 # Allow localnet hosts
 localnet = true
+
+# Whitelisted network transports for outbound connections
+active_profiles = ["tcp+tls"]
+
+[network_config."localnet".net.profiles."tcp+tls"]
+# P2P accept addresses the instance listens on for inbound connections
+inbound = ["tcp+tls://0.0.0.0:48242"]

+ 6 - 5
contrib/localnet/darkfid-small/darkfid0.toml

@@ -50,11 +50,12 @@ rpc_listen = "tcp://127.0.0.1:48241"
 
 ## Localnet P2P network settings
 [network_config."localnet".net]
-# P2P accept addresses the instance listens on for inbound connections
-inbound = ["tcp+tls://0.0.0.0:48242"]
+# Allow localnet hosts
+localnet = true
 
 # Whitelisted network transports for outbound connections
-allowed_transports = ["tcp+tls"]
+active_profiles = ["tcp+tls"]
 
-# Allow localnet hosts
-localnet = true
+[network_config."localnet".net.profiles."tcp+tls"]
+# P2P accept addresses the instance listens on for inbound connections
+inbound = ["tcp+tls://0.0.0.0:48242"]

+ 7 - 6
contrib/localnet/darkfid-small/darkfid1.toml

@@ -58,14 +58,15 @@ rpc_listen = "tcp://127.0.0.1:48341"
 
 ## Localnet P2P network settings
 [network_config."localnet".net]
-# P2P accept addresses the instance listens on for inbound connections
-inbound = ["tcp+tls://0.0.0.0:48342"]
+# Allow localnet hosts
+localnet = true
 
 # Whitelisted network transports for outbound connections
-allowed_transports = ["tcp+tls"]
+active_profiles = ["tcp+tls"]
+
+[network_config."localnet".net.profiles."tcp+tls"]
+# P2P accept addresses the instance listens on for inbound connections
+inbound = ["tcp+tls://0.0.0.0:48342"]
 
 # Peer nodes to manually connect to
 peers = ["tcp+tls://0.0.0.0:48242"]
-
-# Allow localnet hosts
-localnet = true

+ 7 - 6
contrib/localnet/darkfid-small/darkfid2.toml

@@ -45,14 +45,15 @@ rpc_listen = "tcp://127.0.0.1:48440"
 
 ## Localnet P2P network settings
 [network_config."localnet".net]
-# P2P accept addresses the instance listens on for inbound connections
-inbound = ["tcp+tls://0.0.0.0:48442"]
+# Allow localnet hosts
+localnet = true
 
 # Whitelisted network transports for outbound connections
-allowed_transports = ["tcp+tls"]
+active_profiles = ["tcp+tls"]
+
+[network_config."localnet".net.profiles."tcp+tls"]
+# P2P accept addresses the instance listens on for inbound connections
+inbound = ["tcp+tls://0.0.0.0:48442"]
 
 # Peer nodes to manually connect to
 peers = ["tcp+tls://0.0.0.0:48242", "tcp+tls://0.0.0.0:48342"]
-
-# Allow localnet hosts
-localnet = true

+ 10 - 9
contrib/localnet/darkirc-four-nodes/darkirc_full_node1.toml

@@ -28,20 +28,21 @@ outbound_connections = 8
 ## Inbound connection slots
 inbound_connections = 8
 
-inbound = ["tcp://127.0.0.1:25552"]
-
-external_addrs = ["tcp://127.0.0.1:25552"]
+localnet = true
+hostlist = "darkirc1/hostlist.tsv"
 
-# peers = []
+# Prefered transports for outbound connections
+active_profiles = ["tcp"]
 
-## Seed nodes to connect to 
+[net.profiles."tcp"]
+## Seed nodes to connect to
 seeds = ["tcp://127.0.0.1:25551"]
 
-# Prefered transports for outbound connections
-allowed_transports = ["tcp"]
+inbound = ["tcp://127.0.0.1:25552"]
 
-localnet = true
-hostlist = "darkirc1/hostlist.tsv"
+external_addrs = ["tcp://127.0.0.1:25552"]
+
+# peers = []
 
 #
 # [channel."#dev"]

+ 10 - 9
contrib/localnet/darkirc-four-nodes/darkirc_full_node2.toml

@@ -28,20 +28,21 @@ outbound_connections = 8
 ## Inbound connection slots
 # inbound_connections = 8
 
-# inbound = ["tcp://127.0.0.1:25553"]
-
-# external_addrs = ["tcp://127.0.0.1:25553"]
+localnet = true
+hostlist = "darkirc2/hostlist.tsv"
 
-# peers = ["tcp://127.0.0.1:25552"]
+# Prefered transports for outbound connections
+active_profiles = ["tcp"]
 
-## Seed nodes to connect to 
+[net.profiles."tcp"]
+## Seed nodes to connect to
 seeds = ["tcp://127.0.0.1:25551"]
 
-# Prefered transports for outbound connections
-allowed_transports = ["tcp"]
+# inbound = ["tcp://127.0.0.1:25553"]
 
-localnet = true
-hostlist = "darkirc2/hostlist.tsv"
+# external_addrs = ["tcp://127.0.0.1:25553"]
+
+# peers = ["tcp://127.0.0.1:25552"]
 
 #
 # [channel."#dev"]

+ 10 - 9
contrib/localnet/darkirc-four-nodes/darkirc_full_node3.toml

@@ -28,20 +28,21 @@ outbound_connections = 8
 ## Inbound connection slots
 # inbound_connections = 8
 
-# inbound = ["tcp://127.0.0.1:25554"]
-
-# external_addrs = ["tcp://127.0.0.1:25554"]
+localnet = true
+hostlist = "darkirc3/hostlist.tsv"
 
-# peers = ["tcp://127.0.0.1:25552"]
+# Prefered transports for outbound connections
+active_profiles = ["tcp"]
 
-## Seed nodes to connect to 
+[net.profiles."tcp"]
+## Seed nodes to connect to
 seeds = ["tcp://127.0.0.1:25551"]
 
-# Prefered transports for outbound connections
-allowed_transports = ["tcp"]
+# inbound = ["tcp://127.0.0.1:25554"]
 
-localnet = true
-hostlist = "darkirc3/hostlist.tsv"
+# external_addrs = ["tcp://127.0.0.1:25554"]
+
+# peers = ["tcp://127.0.0.1:25552"]
 
 #
 # [channel."#dev"]

+ 9 - 8
contrib/localnet/darkirc-four-nodes/darkirc_full_node4.toml

@@ -28,20 +28,21 @@ outbound_connections = 8
 ## Inbound connection slots
 # inbound_connections = 8
 
-# inbound = ["tcp://127.0.0.1:25555"]
-
-# external_addrs = ["tcp://127.0.0.1:25555"]
+localnet = true
+hostlist = "darkirc4/hostlist.tsv"
 
-# peers = ["tcp://127.0.0.1:25554"]
+# Prefered transports for outbound connections
+active_profiles = ["tcp"]
 
+[net.profiles."tcp"]
 ## Seed nodes to connect to
 seeds = ["tcp://127.0.0.1:25551"]
 
-# Prefered transports for outbound connections
-allowed_transports = ["tcp"]
+# inbound = ["tcp://127.0.0.1:25555"]
 
-localnet = true
-hostlist = "darkirc4/hostlist.tsv"
+# external_addrs = ["tcp://127.0.0.1:25555"]
+
+# peers = ["tcp://127.0.0.1:25554"]
 
 #
 # [channel."#dev"]

+ 7 - 5
contrib/localnet/darkirc-four-nodes/seed.toml

@@ -34,17 +34,19 @@ rpc_listen = "tcp://127.0.0.1:8888"
 ## Inbound connection slots
 inbound_connections = 8
 
-## P2P accept addresses
-inbound = ["tcp://127.0.0.1:25551"]
+localnet = true
+hostlist = "seed/hostlist.tsv"
 
 # Prefered transports for outbound connections
-allowed_transports = ["tcp"]
+active_profiles = ["tcp"]
 
-localnet = true
-hostlist = "seed/hostlist.tsv"
+[net.profiles."tcp"]
+## P2P accept addresses
+inbound = ["tcp://127.0.0.1:25551"]
 
 ## Seed nodes to connect to 
 # seeds = ["tcp://127.0.0.1:25551", "tls://lilith1.dark.fi:25551"]
+
 #
 # [channel."#dev"]
 # topic = "DarkFi Development HQ"

+ 10 - 9
contrib/localnet/dchatd-four-nodes/dchat1.toml

@@ -9,6 +9,16 @@ rpc_listen = "tcp://127.0.0.1:51345"
 #rpc_disabled_methods = ["p2p.get_info"]
 
 [net]
+## Outbound connect slots. Required for outbound nodes.
+outbound_connections = 5
+
+# Set to true if testing on localhost
+localnet = true
+
+# Prefered transports for outbound connections
+active_profiles = ["tcp"]
+
+[net.profiles."tcp"]
 ## P2P accept addresses Required for inbound nodes.
 inbound=["tcp://127.0.0.1:31448"]
 
@@ -17,12 +27,3 @@ external_addrs=["tcp://127.0.0.1:31448"]
 
 ## Seed nodes to connect to. Required for inbound and outbound nodes.
 seeds=["tcp://127.0.0.1:44448"]
-
-## Outbound connect slots. Required for outbound nodes.
-outbound_connections = 5
-
-# Prefered transports for outbound connections
-allowed_transports = ["tcp"]
-
-# Set to true if testing on localhost
-localnet = true

+ 10 - 9
contrib/localnet/dchatd-four-nodes/dchat2.toml

@@ -9,6 +9,16 @@ rpc_listen = "tcp://127.0.0.1:52345"
 #rpc_disabled_methods = ["p2p.get_info"]
 
 [net]
+## Outbound connect slots. Required for outbound nodes.
+outbound_connections = 5
+
+# Set to true if testing on localhost
+localnet = true
+
+# Prefered transports for outbound connections
+active_profiles = ["tcp"]
+
+[net.profiles."tcp"]
 ## P2P accept addresses Required for inbound nodes.
 inbound=["tcp://127.0.0.1:32448"]
 
@@ -17,12 +27,3 @@ external_addrs=["tcp://127.0.0.1:32448"]
 
 ## Seed nodes to connect to. Required for inbound and outbound nodes.
 seeds=["tcp://127.0.0.1:44448"]
-
-## Outbound connect slots. Required for outbound nodes.
-outbound_connections = 5
-
-# Prefered transports for outbound connections
-allowed_transports = ["tcp"]
-
-# Set to true if testing on localhost
-localnet = true

+ 10 - 9
contrib/localnet/dchatd-four-nodes/dchat3.toml

@@ -9,6 +9,16 @@ rpc_listen = "tcp://127.0.0.1:53345"
 #rpc_disabled_methods = ["p2p.get_info"]
 
 [net]
+## Outbound connect slots. Required for outbound nodes.
+outbound_connections = 5
+
+# Set to true if testing on localhost
+localnet = true
+
+# Prefered transports for outbound connections
+active_profiles = ["tcp"]
+
+[net.profiles."tcp"]
 ## P2P accept addresses Required for inbound nodes.
 inbound=["tcp://127.0.0.1:33448"]
 
@@ -17,12 +27,3 @@ external_addrs=["tcp://127.0.0.1:33448"]
 
 ## Seed nodes to connect to. Required for inbound and outbound nodes.
 seeds=["tcp://127.0.0.1:44448"]
-
-## Outbound connect slots. Required for outbound nodes.
-outbound_connections = 5
-
-# Prefered transports for outbound connections
-allowed_transports = ["tcp"]
-
-# Set to true if testing on localhost
-localnet = true

+ 10 - 9
contrib/localnet/dchatd-four-nodes/dchat4.toml

@@ -9,6 +9,16 @@ rpc_listen = "tcp://127.0.0.1:54325"
 #rpc_disabled_methods = ["p2p.get_info"]
 
 [net]
+## Outbound connect slots. Required for outbound nodes.
+outbound_connections = 5
+
+# Set to true if testing on localhost
+localnet = true
+
+# Prefered transports for outbound connections
+active_profiles = ["tcp"]
+
+[net.profiles."tcp"]
 ## P2P accept addresses Required for inbound nodes.
 inbound=["tcp://127.0.0.1:35448"]
 
@@ -17,12 +27,3 @@ external_addrs=["tcp://127.0.0.1:35448"]
 
 ## Seed nodes to connect to. Required for inbound and outbound nodes.
 seeds=["tcp://127.0.0.1:44448"]
-
-## Outbound connect slots. Required for outbound nodes.
-outbound_connections = 5
-
-# Prefered transports for outbound connections
-allowed_transports = ["tcp"]
-
-# Set to true if testing on localhost
-localnet = true

+ 6 - 5
contrib/localnet/dchatd-four-nodes/seed.toml

@@ -9,11 +9,12 @@ rpc_listen = "tcp://127.0.0.1:54448"
 #rpc_disabled_methods = ["p2p.get_info"]
 
 [net]
-## P2P accept addresses Required for inbound nodes.
-inbound=["tcp://127.0.0.1:44448"]
+# Set to true if testing on localhost
+localnet = true
 
 # Prefered transports for outbound connections
-allowed_transports = ["tcp"]
+active_profiles = ["tcp"]
 
-# Set to true if testing on localhost
-localnet = true
+[net.profiles."tcp"]
+## P2P accept addresses Required for inbound nodes.
+inbound=["tcp://127.0.0.1:44448"]

+ 20 - 24
contrib/localnet/taud-four-nodes/seed.toml

@@ -56,9 +56,6 @@ rpc_listen = "tcp://127.0.0.1:23340"
 # Path to a configured hostlist for saving known peers
 hostlist = "seed/hostlist.tsv"
 
-## P2P accept addresses
-inbound = ["tcp://127.0.0.1:23331"]
-
 ## Outbound connection slots
 #outbound_connections = 8
 
@@ -71,33 +68,32 @@ inbound_connections = 8
 ## White connection percent
 #white_connect_percent = 70
 
+localnet = true
+
+# Nodes to avoid interacting with for the duration of the program, in the
+# format ["host", ["scheme", "scheme"], [port, port]].
+# If scheme is left empty it will default to "tcp+tls". 
+# If ports are left empty all ports from this peer will be blocked.
+#blacklist = [["example.com", ["tcp"], [8551, 23331]]]
+
+# Whitelisted transports for outbound connections
+active_profiles = ["tcp"]
+
+[net.profiles."tcp"]
+## P2P accept addresses
+inbound = ["tcp://127.0.0.1:23331"]
+
 ## Addresses we want to advertise to peers (optional)
 ## These should be reachable externally
 # external_addrs = ["tcp://127.0.0.1:23331"]
 
 ## Seed nodes to connect to
 # seeds = [
-    #"tcp+tls://lilith0.dark.fi:5363",
-    # "tcp+tls://lilith1.dark.fi:5363",
-    # "tor://rwjgdy7bs4e3eamgltccea7p5yzz3alfi2vps2xefnihurbmpd3b7hqd.onion:5362"
-    # "tor://f5mldz3utfrj5esn7vy7osa6itusotix6nsjhv4uirshkcvgglb3xdqd.onion:5362"
+#"tcp+tls://lilith0.dark.fi:5363",
+# "tcp+tls://lilith1.dark.fi:5363",
+# "tor://rwjgdy7bs4e3eamgltccea7p5yzz3alfi2vps2xefnihurbmpd3b7hqd.onion:5362"
+# "tor://f5mldz3utfrj5esn7vy7osa6itusotix6nsjhv4uirshkcvgglb3xdqd.onion:5362"
 # ]
 
 ## Manual peers to connect to
-#peers = []
-
-# Whitelisted transports for outbound connections
-allowed_transports = ["tcp"]
-#allowed_transports = ["tor"]
-
-# Transports you want to be mixed (e.g. Tor would be allowed to connect to `tcp://`
-# if tcp is added to mixed_transports and tor is added to allowed_transports)
-mixed_transports = []
-
-localnet = true
-
-# Nodes to avoid interacting with for the duration of the program, in the
-# format ["host", ["scheme", "scheme"], [port, port]].
-# If scheme is left empty it will default to "tcp+tls". 
-# If ports are left empty all ports from this peer will be blocked.
-#blacklist = [["example.com", ["tcp"], [8551, 23331]]]
+#peers = []

+ 16 - 20
contrib/localnet/taud-four-nodes/taud_full_node1.toml

@@ -56,9 +56,6 @@ rpc_listen = "tcp://127.0.0.1:23341"
 # Path to a configured hostlist for saving known peers
 hostlist = "taud1/hostlist.tsv"
 
-## P2P accept addresses
-inbound = ["tcp://127.0.0.1:23332"]
-
 ## Outbound connection slots
 outbound_connections = 8
 
@@ -71,28 +68,27 @@ inbound_connections = 8
 ## White connection percent
 #white_connect_percent = 70
 
-## Addresses we want to advertise to peers (optional)
-## These should be reachable externally
-external_addrs = ["tcp://127.0.0.1:23332"]
+localnet = true
+
+# Nodes to avoid interacting with for the duration of the program, in the
+# format ["host", ["scheme", "scheme"], [port, port]].
+# If scheme is left empty it will default to "tcp+tls". 
+# If ports are left empty all ports from this peer will be blocked.
+#blacklist = [["example.com", ["tcp"], [8551, 23331]]]
+
+# Whitelisted transports for outbound connections
+active_profiles = ["tcp"]
 
+[net.profiles."tcp"]
 ## Seed nodes to connect to
 seeds = ["tcp://127.0.0.1:23331"]
 
 ## Manual peers to connect to
 #peers = []
 
-# Whitelisted transports for outbound connections
-allowed_transports = ["tcp"]
-#allowed_transports = ["tor"]
-
-# Transports you want to be mixed (e.g. Tor would be allowed to connect to `tcp://`
-# if tcp is added to mixed_transports and tor is added to allowed_transports)
-mixed_transports = []
-
-localnet = true
+## P2P accept addresses
+inbound = ["tcp://127.0.0.1:23332"]
 
-# Nodes to avoid interacting with for the duration of the program, in the
-# format ["host", ["scheme", "scheme"], [port, port]].
-# If scheme is left empty it will default to "tcp+tls". 
-# If ports are left empty all ports from this peer will be blocked.
-#blacklist = [["example.com", ["tcp"], [8551, 23331]]]
+## Addresses we want to advertise to peers (optional)
+## These should be reachable externally
+external_addrs = ["tcp://127.0.0.1:23332"]

+ 16 - 20
contrib/localnet/taud-four-nodes/taud_full_node2.toml

@@ -56,9 +56,6 @@ rpc_listen = "tcp://127.0.0.1:23342"
 # Path to a configured hostlist for saving known peers
 hostlist = "taud2/hostlist.tsv"
 
-## P2P accept addresses
-inbound = ["tcp://127.0.0.1:23333"]
-
 ## Outbound connection slots
 outbound_connections = 8
 
@@ -71,28 +68,27 @@ outbound_connections = 8
 ## White connection percent
 #white_connect_percent = 70
 
-## Addresses we want to advertise to peers (optional)
-## These should be reachable externally
-external_addrs = ["tcp://127.0.0.1:23333"]
+localnet = true
+
+# Nodes to avoid interacting with for the duration of the program, in the
+# format ["host", ["scheme", "scheme"], [port, port]].
+# If scheme is left empty it will default to "tcp+tls". 
+# If ports are left empty all ports from this peer will be blocked.
+#blacklist = [["example.com", ["tcp"], [8551, 23331]]]
+
+# Whitelisted transports for outbound connections
+active_profiles = ["tcp"]
 
+[net.profiles."tcp"]
 ## Seed nodes to connect to
 seeds = ["tcp://127.0.0.1:23331"]
 
 ## Manual peers to connect to
 #peers = []
 
-# Whitelisted transports for outbound connections
-allowed_transports = ["tcp"]
-#allowed_transports = ["tor"]
-
-# Transports you want to be mixed (e.g. Tor would be allowed to connect to `tcp://`
-# if tcp is added to mixed_transports and tor is added to allowed_transports)
-mixed_transports = []
-
-localnet = true
+## P2P accept addresses
+inbound = ["tcp://127.0.0.1:23333"]
 
-# Nodes to avoid interacting with for the duration of the program, in the
-# format ["host", ["scheme", "scheme"], [port, port]].
-# If scheme is left empty it will default to "tcp+tls". 
-# If ports are left empty all ports from this peer will be blocked.
-#blacklist = [["example.com", ["tcp"], [8551, 23331]]]
+## Addresses we want to advertise to peers (optional)
+## These should be reachable externally
+external_addrs = ["tcp://127.0.0.1:23333"]

+ 16 - 20
contrib/localnet/taud-four-nodes/taud_full_node3.toml

@@ -56,9 +56,6 @@ rpc_listen = "tcp://127.0.0.1:23343"
 # Path to a configured hostlist for saving known peers
 hostlist = "taud3/hostlist.tsv"
 
-## P2P accept addresses
-inbound = ["tcp://127.0.0.1:23334"]
-
 ## Outbound connection slots
 outbound_connections = 8
 
@@ -71,28 +68,27 @@ outbound_connections = 8
 ## White connection percent
 #white_connect_percent = 70
 
-## Addresses we want to advertise to peers (optional)
-## These should be reachable externally
-external_addrs = ["tcp://127.0.0.1:23334"]
+localnet = true
+
+# Nodes to avoid interacting with for the duration of the program, in the
+# format ["host", ["scheme", "scheme"], [port, port]].
+# If scheme is left empty it will default to "tcp+tls". 
+# If ports are left empty all ports from this peer will be blocked.
+#blacklist = [["example.com", ["tcp"], [8551, 23331]]]
+
+# Whitelisted transports for outbound connections
+active_profiles = ["tcp"]
 
+[net.profiles."tcp"]
 ## Seed nodes to connect to
 seeds = ["tcp://127.0.0.1:23331"]
 
 ## Manual peers to connect to
 #peers = []
 
-# Whitelisted transports for outbound connections
-allowed_transports = ["tcp"]
-#allowed_transports = ["tor"]
-
-# Transports you want to be mixed (e.g. Tor would be allowed to connect to `tcp://`
-# if tcp is added to mixed_transports and tor is added to allowed_transports)
-mixed_transports = []
-
-localnet = true
+## P2P accept addresses
+inbound = ["tcp://127.0.0.1:23334"]
 
-# Nodes to avoid interacting with for the duration of the program, in the
-# format ["host", ["scheme", "scheme"], [port, port]].
-# If scheme is left empty it will default to "tcp+tls". 
-# If ports are left empty all ports from this peer will be blocked.
-#blacklist = [["example.com", ["tcp"], [8551, 23331]]]
+## Addresses we want to advertise to peers (optional)
+## These should be reachable externally
+external_addrs = ["tcp://127.0.0.1:23334"]

+ 16 - 20
contrib/localnet/taud-four-nodes/taud_full_node4.toml

@@ -56,9 +56,6 @@ rpc_listen = "tcp://127.0.0.1:23344"
 # Path to a configured hostlist for saving known peers
 hostlist = "taud4/hostlist.tsv"
 
-## P2P accept addresses
-inbound = ["tcp://127.0.0.1:23335"]
-
 ## Outbound connection slots
 outbound_connections = 8
 
@@ -71,6 +68,21 @@ outbound_connections = 8
 ## White connection percent
 #white_connect_percent = 70
 
+localnet = true
+
+# Nodes to avoid interacting with for the duration of the program, in the
+# format ["host", ["scheme", "scheme"], [port, port]].
+# If scheme is left empty it will default to "tcp+tls". 
+# If ports are left empty all ports from this peer will be blocked.
+#blacklist = [["example.com", ["tcp"], [8551, 23331]]]
+
+# Whitelisted transports for outbound connections
+active_profiles = ["tcp"]
+
+[net.profiles."tcp"]
+## P2P accept addresses
+inbound = ["tcp://127.0.0.1:23335"]
+
 ## Addresses we want to advertise to peers (optional)
 ## These should be reachable externally
 external_addrs = ["tcp://127.0.0.1:23335"]
@@ -79,20 +91,4 @@ external_addrs = ["tcp://127.0.0.1:23335"]
 seeds = ["tcp://127.0.0.1:23331"]
 
 ## Manual peers to connect to
-#peers = []
-
-# Whitelisted transports for outbound connections
-allowed_transports = ["tcp"]
-#allowed_transports = ["tor"]
-
-# Transports you want to be mixed (e.g. Tor would be allowed to connect to `tcp://`
-# if tcp is added to mixed_transports and tor is added to allowed_transports)
-mixed_transports = []
-
-localnet = true
-
-# Nodes to avoid interacting with for the duration of the program, in the
-# format ["host", ["scheme", "scheme"], [port, port]].
-# If scheme is left empty it will default to "tcp+tls". 
-# If ports are left empty all ports from this peer will be blocked.
-#blacklist = [["example.com", ["tcp"], [8551, 23331]]]
+#peers = []