Browse Source

fix & update darkirc test script

Dastan-glitch 2 years ago
parent
commit
fca68c54af

+ 8 - 4
bin/darkirc/script/tmux_session/darkirc_full_node1.toml

@@ -13,7 +13,10 @@ autojoin = ["#dev", "#test"]
 ## P2P net settings
 [net]
 ## Connection slots
-outbound_connections = 3
+outbound_connections = 8
+
+## Inbound connection slots
+inbound_connections = 8
 
 inbound = ["tcp://127.0.0.1:25552"]
 
@@ -35,8 +38,9 @@ localnet = true
 [channel."#test"]
 secret = "HoLfk8vXBvNsBZ73e2xRPBZ9vEbnF9FVi4fDdyU9AZLU"
 
-[secret_key."FCFYzvZ98gAncGNadFp35pTAJSuoJKZFddsi12PnREwp"]
+[crypto]
+#dm_chacha_public = "BmUo88RJ5TyR7gUWnr6Mk7tqZE5xPuCqJdJV8KWzsagh"
+dm_chacha_secret = "Bwdhe48rKsqFwGUquQSSGZZS5NQP1szrdJUhyDE77Br6"
 
 [contact."node2"]
-## contact public key
-public_key = "D6UzKA6qCG5Mep16i6pJYkUCQcnp46E1jPBsUhyJiXhb"
+dm_chacha_public = "ACaVU2uf4n2cheRHFP7RB9PASLweBJNdp5QJ4PGwVz67"

+ 8 - 4
bin/darkirc/script/tmux_session/darkirc_full_node2.toml

@@ -13,7 +13,10 @@ autojoin = ["#dev", "#test"]
 ## P2P net settings
 [net]
 ## Connection slots
-outbound_connections = 3
+outbound_connections = 8
+
+## Inbound connection slots
+inbound_connections = 8
 
 inbound = ["tcp://127.0.0.1:25553"]
 
@@ -35,8 +38,9 @@ localnet = true
 [channel."#test"]
 secret = "HoLfk8vXBvNsBZ73e2xRPBZ9vEbnF9FVi4fDdyU9AZLU"
 
-[secret_key."GnS3vqKQtCnbJJcFMsUfTJc7w3B1E49MgZ8jKiksumYh"]
+[crypto]
+#dm_chacha_public = "ACaVU2uf4n2cheRHFP7RB9PASLweBJNdp5QJ4PGwVz67"
+dm_chacha_secret = "JwsF8D2xvr9ff3Z5j1rhUCBL8odhdZR7qvR2qJ1ZV6P"
 
 [contact."node1"]
-## contact public key
-public_key = "9sfMEVLphJ4dTX3SEvm6NBhTbWDqfsxu7R2bo88CtV8g"
+dm_chacha_public = "BmUo88RJ5TyR7gUWnr6Mk7tqZE5xPuCqJdJV8KWzsagh"

+ 4 - 1
bin/darkirc/script/tmux_session/darkirc_full_node3.toml

@@ -13,7 +13,10 @@ autojoin = ["#dev", "#test"]
 ## P2P net settings
 [net]
 ## Connection slots
-outbound_connections = 3
+outbound_connections = 8
+
+## Inbound connection slots
+inbound_connections = 8
 
 inbound = ["tcp://127.0.0.1:25554"]
 

+ 6 - 1
bin/darkirc/script/tmux_session/darkirc_full_node4.toml

@@ -13,7 +13,10 @@ autojoin = ["#dev", "#test"]
 ## P2P net settings
 [net]
 ## Connection slots
-outbound_connections = 3
+outbound_connections = 8
+
+## Inbound connection slots
+inbound_connections = 8
 
 inbound = ["tcp://127.0.0.1:25555"]
 
@@ -28,6 +31,8 @@ seeds = ["tcp://127.0.0.1:25551"]
 allowed_transports = ["tcp"]
 
 localnet = true
+
+channel_handshake_timeout = 25
 #
 # [channel."#dev"]
 # topic = "DarkFi Development HQ"

+ 6 - 3
bin/darkirc/script/tmux_session/seed.toml

@@ -18,14 +18,17 @@ autojoin = ["#dev"]
 
 ## P2P net settings
 [net]
-## Connection slots
-# outbound_connections=8
+## Outbound connection slots
+outbound_connections = 8
+
+## Inbound connection slots
+inbound_connections = 8
 
 ## P2P accept addresses
 inbound = ["tcp://127.0.0.1:25551"]
 
 # Prefered transports for outbound connections
-outbound_transports = ["tcp"]
+allowed_transports = ["tcp"]
 
 localnet = true
 

+ 2 - 2
bin/darkirc/script/tmux_session/tmux_sessions.sh

@@ -3,9 +3,9 @@
 set -e
 
 tmux new-session -s "darkirc" -n "darkirc" -d
-tmux send-keys "../../../../darkirc --config seed.toml" Enter && sleep 1
+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" Enter && sleep 1
+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