Explorar el Código

bin/genev: fix test script

Dastan-glitch hace 2 años
padre
commit
0808c13a7c

+ 11 - 5
bin/genev/script/genevd_a.toml

@@ -1,5 +1,8 @@
 ## JSON-RPC listen URL
-rpc_listen="tcp://127.0.0.1:28870"
+rpc_listen = "tcp://127.0.0.1:28870"
+
+## Sets Datastore Path
+datastore = "/tmp/genev_test/datastore/node1"
 
 ## Current display name
 #nickname="NICKNAME"
@@ -10,19 +13,22 @@ rpc_listen="tcp://127.0.0.1:28870"
 inbound = ["tcp://127.0.0.1:28882"]
 
 ## Connection slots
-outbound_connections=8
+outbound_connections = 8
+
+## Inbound connection slots
+inbound_connections = 4
 
 ## P2P external addresses
-external_addr = ["tcp://127.0.0.1:28882"]
+external_addrs = ["tcp://127.0.0.1:28882"]
 
 ## Peers to connect to
 #peers = ["tls://127.0.0.1:28881"]
 
 ## Seed nodes to connect to
-seeds=["tcp://127.0.0.1:28881"]
+seeds = ["tcp://127.0.0.1:28881"]
 
 # Prefered transports for outbound connections
-outbound_transports = ["tcp"]
+allowed_transports = ["tcp"]
 
 ## these are the default configuration for the p2p network
 #manual_attempt_limit=0

+ 11 - 5
bin/genev/script/genevd_b.toml

@@ -1,5 +1,8 @@
 ## JSON-RPC listen URL
-rpc_listen="tcp://127.0.0.1:28871"
+rpc_listen = "tcp://127.0.0.1:28871"
+
+## Sets Datastore Path
+datastore = "/tmp/genev_test/datastore/node2"
 
 ## Current display name
 #nickname="NICKNAME"
@@ -10,19 +13,22 @@ rpc_listen="tcp://127.0.0.1:28871"
 inbound = ["tcp://127.0.0.1:28883"]
 
 ## Connection slots
-outbound_connections=8
+outbound_connections = 8
+
+## Inbound connection slots
+inbound_connections = 4
 
 ## P2P external addresses
-external_addr = ["tcp://127.0.0.1:28883"]
+external_addrs = ["tcp://127.0.0.1:28883"]
 
 ## Peers to connect to
 #peers = ["tls://127.0.0.1:28881"]
 
 ## Seed nodes to connect to
-seeds=["tcp://127.0.0.1:28881"]
+seeds = ["tcp://127.0.0.1:28881"]
 
 # Prefered transports for outbound connections
-outbound_transports = ["tcp"]
+allowed_transports = ["tcp"]
 
 ## these are the default configuration for the p2p network
 #manual_attempt_limit=0

+ 11 - 5
bin/genev/script/genevd_c.toml

@@ -1,5 +1,8 @@
 ## JSON-RPC listen URL
-rpc_listen="tcp://127.0.0.1:28872"
+rpc_listen = "tcp://127.0.0.1:28872"
+
+## Sets Datastore Path
+datastore = "/tmp/genev_test/datastore/node3"
 
 ## Current display name
 #nickname="NICKNAME"
@@ -10,19 +13,22 @@ rpc_listen="tcp://127.0.0.1:28872"
 inbound = ["tcp://127.0.0.1:28884"]
 
 ## Connection slots
-outbound_connections=8
+outbound_connections = 8
+
+## Inbound connection slots
+inbound_connections = 4
 
 ## P2P external addresses
-external_addr = ["tcp://127.0.0.1:28884"]
+external_addrs = ["tcp://127.0.0.1:28884"]
 
 ## Peers to connect to
 #peers = ["tls://127.0.0.1:28881"]
 
 ## Seed nodes to connect to
-seeds=["tcp://127.0.0.1:28881"]
+seeds = ["tcp://127.0.0.1:28881"]
 
 # Prefered transports for outbound connections
-outbound_transports = ["tcp"]
+allowed_transports = ["tcp"]
 
 ## these are the default configuration for the p2p network
 #manual_attempt_limit=0

+ 11 - 5
bin/genev/script/genevd_d.toml

@@ -1,5 +1,8 @@
 ## JSON-RPC listen URL
-rpc_listen="tcp://127.0.0.1:28873"
+rpc_listen = "tcp://127.0.0.1:28873"
+
+## Sets Datastore Path
+datastore = "/tmp/genev_test/datastore/node4"
 
 ## Current display name
 #nickname="NICKNAME"
@@ -10,19 +13,22 @@ rpc_listen="tcp://127.0.0.1:28873"
 inbound = ["tcp://127.0.0.1:28885"]
 
 ## Connection slots
-outbound_connections=8
+outbound_connections = 8
+
+## Inbound connection slots
+inbound_connections = 4
 
 ## P2P external addresses
-external_addr = ["tcp://127.0.0.1:28885"]
+external_addrs = ["tcp://127.0.0.1:28885"]
 
 ## Peers to connect to
 #peers = ["tls://127.0.0.1:28881"]
 
 ## Seed nodes to connect to
-seeds=["tcp://127.0.0.1:28881"]
+seeds = ["tcp://127.0.0.1:28881"]
 
 # Prefered transports for outbound connections
-outbound_transports = ["tcp"]
+allowed_transports = ["tcp"]
 
 ## these are the default configuration for the p2p network
 #manual_attempt_limit=0

+ 8 - 4
bin/genev/script/genevd_seed.toml

@@ -1,5 +1,8 @@
 ## JSON-RPC listen URL
-rpc_listen="tcp://127.0.0.1:28880"
+rpc_listen = "tcp://127.0.0.1:28880"
+
+## Sets Datastore Path
+datastore = "/tmp/genev_test/datastore/seed"
 
 ## Current display name
 #nickname="NICKNAME"
@@ -12,6 +15,9 @@ inbound = ["tcp://127.0.0.1:28881"]
 ## Connection slots
 # outbound_connections=8
 
+## Inbound connection slots
+inbound_connections = 4
+
 ## P2P external addresses
 # external_addr = ["tls://127.0.0.1:28881"]
 
@@ -22,7 +28,7 @@ inbound = ["tcp://127.0.0.1:28881"]
 # seeds=["tls://lilith0.dark.fi:28881", "tls://lilith1.dark.fi:28881"]
 
 # Prefered transports for outbound connections
-outbound_transports = ["tcp"]
+allowed_transports = ["tcp"]
 
 ## these are the default configuration for the p2p network
 #manual_attempt_limit=0
@@ -30,5 +36,3 @@ outbound_transports = ["tcp"]
 #connect_timeout_seconds=10
 #channel_handshake_seconds=4
 #channel_heartbeat_seconds=10
-
-

+ 2 - 2
bin/genev/script/tmux_sessions.sh

@@ -3,7 +3,7 @@
 set -e
 
 tmux new-session -s "genevd" -n "genevd" -d
-tmux send-keys "../../../genevd --localnet --config genevd_seed.toml" Enter && sleep 1
+tmux send-keys "../../../genevd --localnet --config genevd_seed.toml --skip-dag-sync" Enter && sleep 1
 tmux split-window -h
 tmux send-keys "../../../genevd --localnet --config genevd_a.toml" Enter
 tmux split-window -h
@@ -17,7 +17,7 @@ tmux send-keys "../../../genevd --localnet --config genevd_d.toml" Enter
 
 
 tmux new-window -t "genevd:1" -n "genev"
-sleep 1
+sleep 5
 tmux send-keys "../../../genev -e tcp://127.0.0.1:28870 add alolymous \"pay bills\" \"gonna pay some bills in the morning\" " Enter
 tmux split-window -v
 sleep 1