git.delta.rocks / unique-network / refs/commits / 017a48dc2d8e

difftreelog

Fix node roles, add key file

Greg Zaitsev2020-07-21parent: #9b6878d.patch.diff
in: master

2 files changed

modifieddocker-compose-testnet.ymldiffbeforeafterboth
--- a/docker-compose-testnet.yml
+++ b/docker-compose-testnet.yml
@@ -40,7 +40,7 @@
       - RPCPORT=9936
       - BOOTNODE=False
       - BOOTPORT=30335
-      - BOOTID=12D3KooWRYNrSRQvJ73esUhpyETQNJWGfC2LQ9dW3HJtzHJM28Hc
+      - BOOTID=12D3KooWRLrjXxByPkSCzcsRyf6652brnJT9s4AQHR3uujJ35mxz
       - VALIDATOR=True
 
   node_bohr:
@@ -62,7 +62,7 @@
       - RPCPORT=9934
       - BOOTNODE=False
       - BOOTPORT=30335
-      - BOOTID=12D3KooWRYNrSRQvJ73esUhpyETQNJWGfC2LQ9dW3HJtzHJM28Hc
+      - BOOTID=12D3KooWRLrjXxByPkSCzcsRyf6652brnJT9s4AQHR3uujJ35mxz
       - VALIDATOR=False
       
 networks: 
modifiedrun-testnet.shdiffbeforeafterboth
before · run-testnet.sh
1# ls -la /nft_parachain/target/release23# /usr/local/bin/nft --dev --ws-external --rpc-external --base-path=/chain-data -lwarn,runtime45echo Running node $NODE6echo P2P Port        : $P2PPORT7echo WebSocket Port  : $WSPORT8echo RPC Port        : $RPCPORT910echo Boot = $BOOTNODE1112if [ "$BOOTNODE" = True ]; 13then14echo This is a Bootnode;15BOOTNODES="";16else17echo Bootnode Port   : $BOOTPORT;18echo Bootnode PeerID : $BOOTID;19BOOTNODES="--bootnodes /dns4/node_einstein/tcp/$BOOTPORT/p2p/$BOOTID";20fi2122if [ "VALIDATOR" = True ];23then24echo This is a Validator node;25/usr/local/bin/nft \26  --base-path /chain-data \27  --chain ./nftTestnetSpecRaw.json \28  --port $P2PPORT \29  --ws-port $WSPORT \30  --rpc-port $RPCPORT \31  --validator \32  --rpc-methods=Unsafe \33  --name $NODE \34  --ws-external \35  --rpc-external \36  -lruntime \37  $BOOTNODES;38else39echo This is a Gateway node;40/usr/local/bin/nft \41  --base-path /chain-data \42  --chain ./nftTestnetSpecRaw.json \43  --port $P2PPORT \44  --ws-port $WSPORT \45  --rpc-port $RPCPORT \46  --validator \47  --rpc-methods=Unsafe \48  --name $NODE \49  --ws-external \50  --rpc-external \51  --rpc-cors all \52  -lruntime \53  $BOOTNODES;54fi
after · run-testnet.sh
1# ls -la /nft_parachain/target/release23# /usr/local/bin/nft --dev --ws-external --rpc-external --base-path=/chain-data -lwarn,runtime45echo Running node $NODE6echo P2P Port        : $P2PPORT7echo WebSocket Port  : $WSPORT8echo RPC Port        : $RPCPORT910echo Boot = $BOOTNODE11echo Validator = $VALIDATOR1213if [ "$BOOTNODE" = True ]; 14then15echo This is a Bootnode;16BOOTNODES="";17NODEKEY="--node-key-file einstein_key_file";18else19echo Bootnode Port   : $BOOTPORT;20echo Bootnode PeerID : $BOOTID;21BOOTNODES="--bootnodes /dns4/node_einstein/tcp/$BOOTPORT/p2p/$BOOTID";22NODEKEY="";23fi2425if [ "$VALIDATOR" = True ];26then27echo This is a Validator node;28/usr/local/bin/nft \29  --base-path /chain-data \30  --chain ./nftTestnetSpecRaw.json \31  --port $P2PPORT \32  --ws-port $WSPORT \33  --rpc-port $RPCPORT \34  --validator \35  --rpc-methods=Unsafe \36  --name $NODE \37  --ws-external \38  --rpc-external \39  -lruntime \40  $BOOTNODES \41  $NODEKEY;42else43echo This is a Gateway node;44/usr/local/bin/nft \45  --base-path /chain-data \46  --chain ./nftTestnetSpecRaw.json \47  --port $P2PPORT \48  --ws-port $WSPORT \49  --rpc-port $RPCPORT \50  --name $NODE \51  --ws-external \52  --rpc-cors all \53  -lruntime \54  $BOOTNODES;55fi