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

no changes

addeddeploy/dev/host_vars/keys/relay-westend-bob-node-keydiffbeforeafterboth

no changes

addeddeploy/dev/host_vars/keys/relay-westend-charlie-node-keydiffbeforeafterboth

no changes

addeddeploy/dev/host_vars/keys/relay-westend-dave-node-keydiffbeforeafterboth

no changes

addeddeploy/dev/host_vars/keys/relay-westend-eve-node-keydiffbeforeafterboth

no changes

addeddeploy/dev/host_vars/keys/relay-westend-ferdie-node-keydiffbeforeafterboth

no changes

modifieddeploy/dev/host_vars/services/relay-westend-alice.servicediffbeforeafterboth
33
4[Service]4[Service]
5ExecStart=/opt/parity/polkadot \5ExecStart=/opt/parity/polkadot \
6 --alice \6 --alice \
7 --validator \
8# --ws-external \
9# --rpc-external \7 --validator \
10# --rpc-cors all \
11 --no-telemetry \
12 --base-path /var/local/westend/alice \8 --base-path /var/local/westend/alice \
13 --chain /opt/parity/westend-local.json \9 --chain /opt/parity/chain-specs/westend-local-v0.9.9.json \
10 --node-key-file /opt/parity/keys/relay-westend-alice-node-key \
14 --execution Wasm \11 --execution Wasm \
15# --listen-addr /ip4/127.0.0.1/tcp/9944/ws \12 --no-prometheus \
13 --no-telemetry \
14 --no-mdns \
15 --bootnodes /ip4/127.0.0.1/tcp/30331/p2p/12D3KooWMkSKwDEKHsxW11YtKNnpeLQiYMZvKUy4XFpF2foZfspb \
16# --public-addr /ip4/92.53.69.98 \16 /ip4/127.0.0.1/tcp/30332/p2p/12D3KooWAK674KrVuH469qro6F9VupJjf3y4NztzAR76Pdn63G1x \
17# --discover-local \17 /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWAE4pU99aVYJBr2YorMfpnjg6hgf1By1z2TeLS6xivnkX \
18 --no-mdns \
19 --bootnodes /ip4/127.0.0.1/tcp/30336/p2p/12D3KooWR76geqit8nMJtQYuLXNy4oHDVJZdsPLNjTmWhL4TeijW \
20 /ip4/127.0.0.1/tcp/30335/p2p/12D3KooWRqnBJPpKntaKmqoDJLxgGR11tconzYLewaeGz2saiXhw \18 /ip4/127.0.0.1/tcp/30334/p2p/12D3KooWFLkdZQ2sTsjazSotfkFY8HhHXVvT4Wp6xWcAm6aXH5qk \
21 /ip4/127.0.0.1/tcp/30334/p2p/12D3KooWRydSwsbQbfBN71DFXxmYt5GHmrVebRmUv9mPU91U3FPE \19 /ip4/127.0.0.1/tcp/30335/p2p/12D3KooWKAkFyAD94wDdhb1k9DgDEWNgDftzTZV7t88K1rm6wcXn \
22 --port 30333 \20 --port 30330 \
23 --rpc-port 9843 \21 --rpc-port 9843 \
24 --ws-port 984422 --ws-port 9844 \
23 --unsafe-ws-external \
24 --rpc-cors=all
2525
26Restart=always26Restart=always
27RestartSec=12027RestartSec=120
modifieddeploy/dev/host_vars/services/relay-westend-bob.servicediffbeforeafterboth
33
4[Service]4[Service]
5ExecStart=/opt/parity/polkadot \5ExecStart=/opt/parity/polkadot \
6 --bob \6 --bob \
7 --validator \
8# --ws-external \
9# --rpc-external \7 --validator \
10# --rpc-cors all \
11 --no-telemetry \
12 --base-path /var/local/westend/bob \8 --base-path /var/local/westend/bob \
13 --chain /opt/parity/westend-local.json \9 --chain /opt/parity/chain-specs/westend-local-v0.9.9.json \
10 --node-key-file /opt/parity/keys/relay-westend-bob-node-key \
14 --execution Wasm \11 --execution Wasm \
15# --listen-addr /ip4/127.0.0.1/tcp/9944/ws \12 --no-prometheus \
13 --no-telemetry \
14 --no-mdns \
15 --bootnodes /ip4/127.0.0.1/tcp/30330/p2p/12D3KooWFeip5gL9ZUKWbD4tUE1mE7hGu7m2R2eoBqeSkLa2xrVp \
16# --public-addr /ip4/92.53.69.98 \16 /ip4/127.0.0.1/tcp/30332/p2p/12D3KooWAK674KrVuH469qro6F9VupJjf3y4NztzAR76Pdn63G1x \
17# --discover-local \17 /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWAE4pU99aVYJBr2YorMfpnjg6hgf1By1z2TeLS6xivnkX \
18 --no-mdns \
19 --bootnodes /ip4/127.0.0.1/tcp/30336/p2p/12D3KooWR76geqit8nMJtQYuLXNy4oHDVJZdsPLNjTmWhL4TeijW \18 /ip4/127.0.0.1/tcp/30334/p2p/12D3KooWFLkdZQ2sTsjazSotfkFY8HhHXVvT4Wp6xWcAm6aXH5qk \
20 /ip4/127.0.0.1/tcp/30335/p2p/12D3KooWRqnBJPpKntaKmqoDJLxgGR11tconzYLewaeGz2saiXhw \19 /ip4/127.0.0.1/tcp/30335/p2p/12D3KooWKAkFyAD94wDdhb1k9DgDEWNgDftzTZV7t88K1rm6wcXn \
21 /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWHp7JuDmdrv79mgdPxPa59PYLiXW2AkwXqAXQa71i1gje \20 --port 30331 \
22 --port 30334 \21 --rpc-port 9853 \
23 --rpc-port 9854 \22 --ws-port 9854 \
24 --ws-port 985523 --unsafe-ws-external \
24 --rpc-cors=all
2525
26Restart=always26Restart=always
27RestartSec=12027RestartSec=120
modifieddeploy/dev/host_vars/services/relay-westend-charlie.servicediffbeforeafterboth
33
4[Service]4[Service]
5ExecStart=/opt/parity/polkadot \5ExecStart=/opt/parity/polkadot \
6 --charlie \6 --charlie \
7 --validator \
8# --ws-external \
9# --rpc-external \7 --validator \
10# --rpc-cors all \
11 --no-telemetry \
12 --base-path /var/local/westend/charlie \8 --base-path /var/local/westend/charlie \
13 --chain /opt/parity/westend-local.json \9 --chain /opt/parity/chain-specs/westend-local-v0.9.9.json \
10 --node-key-file /opt/parity/keys/relay-westend-charlie-node-key \
14 --execution Wasm \11 --execution Wasm \
15# --listen-addr /ip4/127.0.0.1/tcp/9944/ws \12 --no-prometheus \
13 --no-telemetry \
14 --no-mdns \
15 --bootnodes /ip4/127.0.0.1/tcp/30330/p2p/12D3KooWFeip5gL9ZUKWbD4tUE1mE7hGu7m2R2eoBqeSkLa2xrVp \
16# --public-addr /ip4/92.53.69.98 \16 /ip4/127.0.0.1/tcp/30331/p2p/12D3KooWMkSKwDEKHsxW11YtKNnpeLQiYMZvKUy4XFpF2foZfspb \
17# --discover-local \17 /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWAE4pU99aVYJBr2YorMfpnjg6hgf1By1z2TeLS6xivnkX \
18 --no-mdns \
19 --bootnodes /ip4/127.0.0.1/tcp/30336/p2p/12D3KooWR76geqit8nMJtQYuLXNy4oHDVJZdsPLNjTmWhL4TeijW \
20 /ip4/127.0.0.1/tcp/30334/p2p/12D3KooWRydSwsbQbfBN71DFXxmYt5GHmrVebRmUv9mPU91U3FPE \18 /ip4/127.0.0.1/tcp/30334/p2p/12D3KooWFLkdZQ2sTsjazSotfkFY8HhHXVvT4Wp6xWcAm6aXH5qk \
21 /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWHp7JuDmdrv79mgdPxPa59PYLiXW2AkwXqAXQa71i1gje \19 /ip4/127.0.0.1/tcp/30335/p2p/12D3KooWKAkFyAD94wDdhb1k9DgDEWNgDftzTZV7t88K1rm6wcXn \
22 --port 30335 \20 --port 30332 \
23 --rpc-port 9865 \21 --rpc-port 9863 \
24 --ws-port 986622 --ws-port 9864 \
23 --unsafe-ws-external \
24 --rpc-cors=all
2525
26Restart=always26Restart=always
27RestartSec=12027RestartSec=120
modifieddeploy/dev/host_vars/services/relay-westend-dave.servicediffbeforeafterboth
33
4[Service]4[Service]
5ExecStart=/opt/parity/polkadot \5ExecStart=/opt/parity/polkadot \
6 --dave \6 --dave \
7 --validator \
8# --ws-external \
9# --rpc-external \7 --validator \
10# --rpc-cors all \
11 --no-telemetry \
12 --base-path /var/local/westend/dave \8 --base-path /var/local/westend/dave \
13 --chain /opt/parity/westend-local.json \9 --chain /opt/parity/chain-specs/westend-local-v0.9.9.json \
10 --node-key-file /opt/parity/keys/relay-westend-dave-node-key \
14 --execution Wasm \11 --execution Wasm \
15# --listen-addr /ip4/127.0.0.1/tcp/9944/ws \12 --no-prometheus \
13 --no-telemetry \
16# --public-addr /ip4/92.53.69.98 \14 --no-mdns \
17# --discover-local \
18 --no-mdns \
19 --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWHp7JuDmdrv79mgdPxPa59PYLiXW2AkwXqAXQa71i1gje \15 --bootnodes /ip4/127.0.0.1/tcp/30330/p2p/12D3KooWFeip5gL9ZUKWbD4tUE1mE7hGu7m2R2eoBqeSkLa2xrVp \
20 /ip4/127.0.0.1/tcp/30335/p2p/12D3KooWRqnBJPpKntaKmqoDJLxgGR11tconzYLewaeGz2saiXhw \16 /ip4/127.0.0.1/tcp/30331/p2p/12D3KooWMkSKwDEKHsxW11YtKNnpeLQiYMZvKUy4XFpF2foZfspb \
21 /ip4/127.0.0.1/tcp/30334/p2p/12D3KooWRydSwsbQbfBN71DFXxmYt5GHmrVebRmUv9mPU91U3FPE \17 /ip4/127.0.0.1/tcp/30332/p2p/12D3KooWAK674KrVuH469qro6F9VupJjf3y4NztzAR76Pdn63G1x \
18 /ip4/127.0.0.1/tcp/30334/p2p/12D3KooWFLkdZQ2sTsjazSotfkFY8HhHXVvT4Wp6xWcAm6aXH5qk \
22 --port 30336 \19 /ip4/127.0.0.1/tcp/30335/p2p/12D3KooWKAkFyAD94wDdhb1k9DgDEWNgDftzTZV7t88K1rm6wcXn \
20 --port 30333 \
23 --rpc-port 9876 \21 --rpc-port 9873 \
24 --ws-port 987722 --ws-port 9874 \
23 --unsafe-ws-external \
24 --rpc-cors=all
2525
26Restart=always26Restart=always
27RestartSec=12027RestartSec=120
addeddeploy/dev/host_vars/services/relay-westend-eve.servicediffbeforeafterboth

no changes

addeddeploy/dev/host_vars/services/relay-westend-ferdie.servicediffbeforeafterboth

no changes

modifieddeploy/dev/start-relay-westend.shdiffbeforeafterboth
1#!/bin/bash1#!/bin/bash
2/opt/parity/polkadot build-spec --chain westend-local --disable-default-bootnode --raw > /opt/parity/westend-local.json2/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
33
4service relay-westend-alice start4service relay-westend-alice start
5sleep 155sleep 5
66
7service relay-westend-bob start7service relay-westend-bob start
8sleep 158sleep 5
99
10service relay-westend-charlie start10service relay-westend-charlie start
11sleep 1511sleep 5
1212
13service relay-westend-dave start13service relay-westend-dave start
14sleep 5
15
16service relay-westend-eve start
17sleep 5
18
19service relay-westend-ferdie start
1420
modifieddeploy/dev/stop-relay-westend.shdiffbeforeafterboth
1#!/bin/bash1#!/bin/bash
2service relay-westend-ferdie stop
3service relay-westend-eve stop
2service relay-westend-dave stop4service relay-westend-dave stop
3sleep 5
4
5service relay-westend-charlie stop5service relay-westend-charlie stop
6sleep 5
7
8service relay-westend-bob stop6service relay-westend-bob stop
9sleep 5
10
11service relay-westend-alice stop7service relay-westend-alice stop
12sleep 158sleep 15
139
14rm -rfv /var/local/westend/dave/chains/westend_local_testnet/db10rm -rfv /var/local/westend/
15rm -rfv /var/local/westend/dave/chains/westend_local_testnet/keystore
16
17rm -rfv /var/local/westend/charlie/chains/westend_local_testnet/db
18rm -rfv /var/local/westend/charlie/chains/westend_local_testnet/keystore
19
20rm -rfv /var/local/westend/bob/chains/westend_local_testnet/db
21rm -rfv /var/local/westend/bob/chains/westend_local_testnet/keystore
22
23rm -rfv /var/local/westend/alice/chains/westend_local_testnet/db
24rm -rfv /var/local/westend/alice/chains/westend_local_testnet/keystore
2511