git.delta.rocks / unique-network / refs/commits / 371988ead6c5

difftreelog

dev setup westend-local relay

Igor Kozyrev2021-09-17parent: #d51c61a.patch.diff
in: master

15 files changed

addeddeploy/dev/host_vars/chain-specs/westend-local-v0.9.9-source.jsondiffbeforeafterboth

no changes

addeddeploy/dev/host_vars/keys/relay-westend-alice-node-keydiffbeforeafterboth
--- /dev/null
+++ b/deploy/dev/host_vars/keys/relay-westend-alice-node-key
@@ -0,0 +1 @@
+e4344e627891ffb47a942811c2b3b96e93a45dc485bc177953a98b3194634a88
\ No newline at end of file
addeddeploy/dev/host_vars/keys/relay-westend-bob-node-keydiffbeforeafterboth
--- /dev/null
+++ b/deploy/dev/host_vars/keys/relay-westend-bob-node-key
@@ -0,0 +1 @@
+de8c9102e5d5f4fa7f4d397e9cdd22ebe31d45bcf823d6dd294d386feb36285c
\ No newline at end of file
addeddeploy/dev/host_vars/keys/relay-westend-charlie-node-keydiffbeforeafterboth
--- /dev/null
+++ b/deploy/dev/host_vars/keys/relay-westend-charlie-node-key
@@ -0,0 +1 @@
+8cb1bcf81ba675ff0512cffebaeffbbd59c969a24be82357e01cdebe18345a8c
\ No newline at end of file
addeddeploy/dev/host_vars/keys/relay-westend-dave-node-keydiffbeforeafterboth
--- /dev/null
+++ b/deploy/dev/host_vars/keys/relay-westend-dave-node-key
@@ -0,0 +1 @@
+9bb00cfcf79233d1d936ecbca12bafe0321a12d8a81a1a32c77a343bc931719a
\ No newline at end of file
addeddeploy/dev/host_vars/keys/relay-westend-eve-node-keydiffbeforeafterboth
--- /dev/null
+++ b/deploy/dev/host_vars/keys/relay-westend-eve-node-key
@@ -0,0 +1 @@
+44ec337704dc686f61615a5db3bcb788a117e52015f22374dfdae7ca8799cd91
\ No newline at end of file
addeddeploy/dev/host_vars/keys/relay-westend-ferdie-node-keydiffbeforeafterboth
--- /dev/null
+++ b/deploy/dev/host_vars/keys/relay-westend-ferdie-node-key
@@ -0,0 +1 @@
+15fe3024f6ef9a8da9b34492dc845b544f48631e05f00d544cadcae041c51eb5
\ No newline at end of file
modifieddeploy/dev/host_vars/services/relay-westend-alice.servicediffbeforeafterboth
--- a/deploy/dev/host_vars/services/relay-westend-alice.service
+++ b/deploy/dev/host_vars/services/relay-westend-alice.service
@@ -3,25 +3,25 @@
 
 [Service]
 ExecStart=/opt/parity/polkadot \
-	--alice \
-	--validator \
-#        --ws-external \
-#        --rpc-external \
-#        --rpc-cors all \
-	--no-telemetry \
+        --alice \
+        --validator \
         --base-path /var/local/westend/alice \
-        --chain /opt/parity/westend-local.json \
+        --chain /opt/parity/chain-specs/westend-local-v0.9.9.json \
+	--node-key-file /opt/parity/keys/relay-westend-alice-node-key \
         --execution Wasm \
-#       --listen-addr /ip4/127.0.0.1/tcp/9944/ws \
-#        --public-addr /ip4/92.53.69.98 \
-#	--discover-local \
-	--no-mdns \
-	--bootnodes /ip4/127.0.0.1/tcp/30336/p2p/12D3KooWR76geqit8nMJtQYuLXNy4oHDVJZdsPLNjTmWhL4TeijW \
-		/ip4/127.0.0.1/tcp/30335/p2p/12D3KooWRqnBJPpKntaKmqoDJLxgGR11tconzYLewaeGz2saiXhw \
-		/ip4/127.0.0.1/tcp/30334/p2p/12D3KooWRydSwsbQbfBN71DFXxmYt5GHmrVebRmUv9mPU91U3FPE \
-	--port 30333 \
-	--rpc-port 9843 \
-	--ws-port 9844
+	--no-prometheus \
+	--no-telemetry \
+        --no-mdns \
+        --bootnodes /ip4/127.0.0.1/tcp/30331/p2p/12D3KooWMkSKwDEKHsxW11YtKNnpeLQiYMZvKUy4XFpF2foZfspb \
+		/ip4/127.0.0.1/tcp/30332/p2p/12D3KooWAK674KrVuH469qro6F9VupJjf3y4NztzAR76Pdn63G1x \
+		/ip4/127.0.0.1/tcp/30333/p2p/12D3KooWAE4pU99aVYJBr2YorMfpnjg6hgf1By1z2TeLS6xivnkX \
+		/ip4/127.0.0.1/tcp/30334/p2p/12D3KooWFLkdZQ2sTsjazSotfkFY8HhHXVvT4Wp6xWcAm6aXH5qk \
+		/ip4/127.0.0.1/tcp/30335/p2p/12D3KooWKAkFyAD94wDdhb1k9DgDEWNgDftzTZV7t88K1rm6wcXn \
+        --port 30330 \
+        --rpc-port 9843 \
+        --ws-port 9844 \
+	--unsafe-ws-external \
+	--rpc-cors=all
 
 Restart=always
 RestartSec=120
modifieddeploy/dev/host_vars/services/relay-westend-bob.servicediffbeforeafterboth
--- a/deploy/dev/host_vars/services/relay-westend-bob.service
+++ b/deploy/dev/host_vars/services/relay-westend-bob.service
@@ -3,25 +3,25 @@
 
 [Service]
 ExecStart=/opt/parity/polkadot \
-	--bob \
-	--validator \
-#        --ws-external \
-#        --rpc-external \
-#        --rpc-cors all \
-	--no-telemetry \
+        --bob \
+        --validator \
         --base-path /var/local/westend/bob \
-        --chain /opt/parity/westend-local.json \
+        --chain /opt/parity/chain-specs/westend-local-v0.9.9.json \
+	--node-key-file /opt/parity/keys/relay-westend-bob-node-key \
         --execution Wasm \
-#       --listen-addr /ip4/127.0.0.1/tcp/9944/ws \
-#        --public-addr /ip4/92.53.69.98 \
-#	--discover-local \
-	--no-mdns \
-	--bootnodes /ip4/127.0.0.1/tcp/30336/p2p/12D3KooWR76geqit8nMJtQYuLXNy4oHDVJZdsPLNjTmWhL4TeijW \
-                /ip4/127.0.0.1/tcp/30335/p2p/12D3KooWRqnBJPpKntaKmqoDJLxgGR11tconzYLewaeGz2saiXhw \
-                /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWHp7JuDmdrv79mgdPxPa59PYLiXW2AkwXqAXQa71i1gje \
-	--port 30334 \
-	--rpc-port 9854 \
-	--ws-port 9855
+	--no-prometheus \
+	--no-telemetry \
+        --no-mdns \
+        --bootnodes /ip4/127.0.0.1/tcp/30330/p2p/12D3KooWFeip5gL9ZUKWbD4tUE1mE7hGu7m2R2eoBqeSkLa2xrVp \
+		/ip4/127.0.0.1/tcp/30332/p2p/12D3KooWAK674KrVuH469qro6F9VupJjf3y4NztzAR76Pdn63G1x \
+		/ip4/127.0.0.1/tcp/30333/p2p/12D3KooWAE4pU99aVYJBr2YorMfpnjg6hgf1By1z2TeLS6xivnkX \
+		/ip4/127.0.0.1/tcp/30334/p2p/12D3KooWFLkdZQ2sTsjazSotfkFY8HhHXVvT4Wp6xWcAm6aXH5qk \
+		/ip4/127.0.0.1/tcp/30335/p2p/12D3KooWKAkFyAD94wDdhb1k9DgDEWNgDftzTZV7t88K1rm6wcXn \
+        --port 30331 \
+        --rpc-port 9853 \
+        --ws-port 9854 \
+	--unsafe-ws-external \
+	--rpc-cors=all
 
 Restart=always
 RestartSec=120
modifieddeploy/dev/host_vars/services/relay-westend-charlie.servicediffbeforeafterboth
--- a/deploy/dev/host_vars/services/relay-westend-charlie.service
+++ b/deploy/dev/host_vars/services/relay-westend-charlie.service
@@ -3,25 +3,25 @@
 
 [Service]
 ExecStart=/opt/parity/polkadot \
-	--charlie \
-	--validator \
-#        --ws-external \
-#        --rpc-external \
-#        --rpc-cors all \
-	--no-telemetry \
+        --charlie \
+        --validator \
         --base-path /var/local/westend/charlie \
-        --chain /opt/parity/westend-local.json \
+        --chain /opt/parity/chain-specs/westend-local-v0.9.9.json \
+	--node-key-file /opt/parity/keys/relay-westend-charlie-node-key \
         --execution Wasm \
-#       --listen-addr /ip4/127.0.0.1/tcp/9944/ws \
-#        --public-addr /ip4/92.53.69.98 \
-#	--discover-local \
-	--no-mdns \
-	--bootnodes /ip4/127.0.0.1/tcp/30336/p2p/12D3KooWR76geqit8nMJtQYuLXNy4oHDVJZdsPLNjTmWhL4TeijW \
-                /ip4/127.0.0.1/tcp/30334/p2p/12D3KooWRydSwsbQbfBN71DFXxmYt5GHmrVebRmUv9mPU91U3FPE \
-                /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWHp7JuDmdrv79mgdPxPa59PYLiXW2AkwXqAXQa71i1gje \
-	--port 30335 \
-	--rpc-port 9865 \
-	--ws-port 9866
+	--no-prometheus \
+	--no-telemetry \
+        --no-mdns \
+        --bootnodes /ip4/127.0.0.1/tcp/30330/p2p/12D3KooWFeip5gL9ZUKWbD4tUE1mE7hGu7m2R2eoBqeSkLa2xrVp \
+		/ip4/127.0.0.1/tcp/30331/p2p/12D3KooWMkSKwDEKHsxW11YtKNnpeLQiYMZvKUy4XFpF2foZfspb \
+		/ip4/127.0.0.1/tcp/30333/p2p/12D3KooWAE4pU99aVYJBr2YorMfpnjg6hgf1By1z2TeLS6xivnkX \
+		/ip4/127.0.0.1/tcp/30334/p2p/12D3KooWFLkdZQ2sTsjazSotfkFY8HhHXVvT4Wp6xWcAm6aXH5qk \
+		/ip4/127.0.0.1/tcp/30335/p2p/12D3KooWKAkFyAD94wDdhb1k9DgDEWNgDftzTZV7t88K1rm6wcXn \
+        --port 30332 \
+        --rpc-port 9863 \
+        --ws-port 9864 \
+	--unsafe-ws-external \
+	--rpc-cors=all
 
 Restart=always
 RestartSec=120
modifieddeploy/dev/host_vars/services/relay-westend-dave.servicediffbeforeafterboth
--- a/deploy/dev/host_vars/services/relay-westend-dave.service
+++ b/deploy/dev/host_vars/services/relay-westend-dave.service
@@ -3,25 +3,25 @@
 
 [Service]
 ExecStart=/opt/parity/polkadot \
-	--dave \
-	--validator \
-#        --ws-external \
-#        --rpc-external \
-#        --rpc-cors all \
-	--no-telemetry \
+        --dave \
+        --validator \
         --base-path /var/local/westend/dave \
-        --chain /opt/parity/westend-local.json \
+        --chain /opt/parity/chain-specs/westend-local-v0.9.9.json \
+	--node-key-file /opt/parity/keys/relay-westend-dave-node-key \
         --execution Wasm \
-#       --listen-addr /ip4/127.0.0.1/tcp/9944/ws \
-#        --public-addr /ip4/92.53.69.98 \
-#	--discover-local \
-	--no-mdns \
-        --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWHp7JuDmdrv79mgdPxPa59PYLiXW2AkwXqAXQa71i1gje \
-                /ip4/127.0.0.1/tcp/30335/p2p/12D3KooWRqnBJPpKntaKmqoDJLxgGR11tconzYLewaeGz2saiXhw \
-                /ip4/127.0.0.1/tcp/30334/p2p/12D3KooWRydSwsbQbfBN71DFXxmYt5GHmrVebRmUv9mPU91U3FPE \
-	--port 30336 \
-	--rpc-port 9876 \
-	--ws-port 9877
+	--no-prometheus \
+	--no-telemetry \
+        --no-mdns \
+        --bootnodes /ip4/127.0.0.1/tcp/30330/p2p/12D3KooWFeip5gL9ZUKWbD4tUE1mE7hGu7m2R2eoBqeSkLa2xrVp \
+                /ip4/127.0.0.1/tcp/30331/p2p/12D3KooWMkSKwDEKHsxW11YtKNnpeLQiYMZvKUy4XFpF2foZfspb \
+		/ip4/127.0.0.1/tcp/30332/p2p/12D3KooWAK674KrVuH469qro6F9VupJjf3y4NztzAR76Pdn63G1x \
+		/ip4/127.0.0.1/tcp/30334/p2p/12D3KooWFLkdZQ2sTsjazSotfkFY8HhHXVvT4Wp6xWcAm6aXH5qk \
+		/ip4/127.0.0.1/tcp/30335/p2p/12D3KooWKAkFyAD94wDdhb1k9DgDEWNgDftzTZV7t88K1rm6wcXn \
+        --port 30333 \
+        --rpc-port 9873 \
+        --ws-port 9874 \
+	--unsafe-ws-external \
+	--rpc-cors=all
 
 Restart=always
 RestartSec=120
addeddeploy/dev/host_vars/services/relay-westend-eve.servicediffbeforeafterboth
--- /dev/null
+++ b/deploy/dev/host_vars/services/relay-westend-eve.service
@@ -0,0 +1,30 @@
+[Unit]
+Description=Westend Eve
+
+[Service]
+ExecStart=/opt/parity/polkadot \
+        --eve \
+        --validator \
+        --base-path /var/local/westend/eve \
+        --chain /opt/parity/chain-specs/westend-local-v0.9.9.json \
+	--node-key-file /opt/parity/keys/relay-westend-eve-node-key \
+        --execution Wasm \
+	--no-prometheus \
+	--no-telemetry \
+        --no-mdns \
+	--bootnodes /ip4/127.0.0.1/tcp/30330/p2p/12D3KooWFeip5gL9ZUKWbD4tUE1mE7hGu7m2R2eoBqeSkLa2xrVp \
+                /ip4/127.0.0.1/tcp/30331/p2p/12D3KooWMkSKwDEKHsxW11YtKNnpeLQiYMZvKUy4XFpF2foZfspb \
+                /ip4/127.0.0.1/tcp/30332/p2p/12D3KooWAK674KrVuH469qro6F9VupJjf3y4NztzAR76Pdn63G1x \
+		/ip4/127.0.0.1/tcp/30333/p2p/12D3KooWAE4pU99aVYJBr2YorMfpnjg6hgf1By1z2TeLS6xivnkX \
+		/ip4/127.0.0.1/tcp/30335/p2p/12D3KooWKAkFyAD94wDdhb1k9DgDEWNgDftzTZV7t88K1rm6wcXn \
+        --port 30334 \
+        --rpc-port 9883 \
+        --ws-port 9884 \
+	--unsafe-ws-external \
+	--rpc-cors=all
+
+Restart=always
+RestartSec=120
+
+[Install]
+WantedBy=multi-user.target
addeddeploy/dev/host_vars/services/relay-westend-ferdie.servicediffbeforeafterboth
--- /dev/null
+++ b/deploy/dev/host_vars/services/relay-westend-ferdie.service
@@ -0,0 +1,30 @@
+[Unit]
+Description=Westend Ferdie
+
+[Service]
+ExecStart=/opt/parity/polkadot \
+        --ferdie \
+        --validator \
+        --base-path /var/local/westend/ferdie \
+        --chain /opt/parity/chain-specs/westend-local-v0.9.9.json \
+	--node-key-file /opt/parity/keys/relay-westend-ferdie-node-key \
+        --execution Wasm \
+	--no-prometheus \
+	--no-telemetry \
+        --no-mdns \
+	--bootnodes /ip4/127.0.0.1/tcp/30330/p2p/12D3KooWFeip5gL9ZUKWbD4tUE1mE7hGu7m2R2eoBqeSkLa2xrVp \
+                /ip4/127.0.0.1/tcp/30331/p2p/12D3KooWMkSKwDEKHsxW11YtKNnpeLQiYMZvKUy4XFpF2foZfspb \
+                /ip4/127.0.0.1/tcp/30332/p2p/12D3KooWAK674KrVuH469qro6F9VupJjf3y4NztzAR76Pdn63G1x \
+                /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWAE4pU99aVYJBr2YorMfpnjg6hgf1By1z2TeLS6xivnkX \
+		/ip4/127.0.0.1/tcp/30334/p2p/12D3KooWFLkdZQ2sTsjazSotfkFY8HhHXVvT4Wp6xWcAm6aXH5qk \
+        --port 30335 \
+        --rpc-port 9893 \
+        --ws-port 9894 \
+	--unsafe-ws-external \
+	--rpc-cors=all
+
+Restart=always
+RestartSec=120
+
+[Install]
+WantedBy=multi-user.target
modifieddeploy/dev/start-relay-westend.shdiffbeforeafterboth
--- a/deploy/dev/start-relay-westend.sh
+++ b/deploy/dev/start-relay-westend.sh
@@ -1,13 +1,19 @@
 #!/bin/bash
-/opt/parity/polkadot build-spec --chain westend-local --disable-default-bootnode --raw > /opt/parity/westend-local.json
+/opt/parity/polkadot build-spec --chain /opt/parity/chain-specs/westend-local-v0.9.9-source.json --disable-default-bootnode --raw > /opt/parity/chain-specs/westend-local-v0.9.9.json
 
 service relay-westend-alice start
-sleep 15
+sleep 5
 
 service relay-westend-bob start
-sleep 15
+sleep 5
 
 service relay-westend-charlie start
-sleep 15
+sleep 5
 
 service relay-westend-dave start
+sleep 5
+
+service relay-westend-eve start
+sleep 5
+
+service relay-westend-ferdie start
modifieddeploy/dev/stop-relay-westend.shdiffbeforeafterboth
--- a/deploy/dev/stop-relay-westend.sh
+++ b/deploy/dev/stop-relay-westend.sh
@@ -1,24 +1,10 @@
 #!/bin/bash
+service relay-westend-ferdie stop
+service relay-westend-eve stop
 service relay-westend-dave stop
-sleep 5
-
 service relay-westend-charlie stop
-sleep 5
-
 service relay-westend-bob stop
-sleep 5
-
 service relay-westend-alice stop
 sleep 15
 
-rm -rfv /var/local/westend/dave/chains/westend_local_testnet/db
-rm -rfv /var/local/westend/dave/chains/westend_local_testnet/keystore
-
-rm -rfv /var/local/westend/charlie/chains/westend_local_testnet/db
-rm -rfv /var/local/westend/charlie/chains/westend_local_testnet/keystore
-
-rm -rfv /var/local/westend/bob/chains/westend_local_testnet/db
-rm -rfv /var/local/westend/bob/chains/westend_local_testnet/keystore
-
-rm -rfv /var/local/westend/alice/chains/westend_local_testnet/db
-rm -rfv /var/local/westend/alice/chains/westend_local_testnet/keystore
+rm -rfv /var/local/westend/