difftreelog
Fix node roles, add key file
in: master
2 files changed
docker-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:
run-testnet.shdiffbeforeafterboth8echo RPC Port : $RPCPORT8echo RPC Port : $RPCPORT9910echo Boot = $BOOTNODE10echo Boot = $BOOTNODE11echo Validator = $VALIDATOR111212if [ "$BOOTNODE" = True ]; 13if [ "$BOOTNODE" = True ]; 13then14then14echo This is a Bootnode;15echo This is a Bootnode;15BOOTNODES="";16BOOTNODES="";17NODEKEY="--node-key-file einstein_key_file";16else18else17echo Bootnode Port : $BOOTPORT;19echo Bootnode Port : $BOOTPORT;18echo Bootnode PeerID : $BOOTID;20echo Bootnode PeerID : $BOOTID;19BOOTNODES="--bootnodes /dns4/node_einstein/tcp/$BOOTPORT/p2p/$BOOTID";21BOOTNODES="--bootnodes /dns4/node_einstein/tcp/$BOOTPORT/p2p/$BOOTID";22NODEKEY="";20fi23fi212422if [ "VALIDATOR" = True ];25if [ "$VALIDATOR" = True ];23then26then24echo This is a Validator node;27echo This is a Validator node;25/usr/local/bin/nft \28/usr/local/bin/nft \35 --rpc-external \38 --rpc-external \36 -lruntime \39 -lruntime \37 $BOOTNODES;40 $BOOTNODES \41 $NODEKEY;38else42else39echo This is a Gateway node;43echo This is a Gateway node;40/usr/local/bin/nft \44/usr/local/bin/nft \43 --port $P2PPORT \47 --port $P2PPORT \44 --ws-port $WSPORT \48 --ws-port $WSPORT \45 --rpc-port $RPCPORT \49 --rpc-port $RPCPORT \46 --validator \47 --rpc-methods=Unsafe \48 --name $NODE \50 --name $NODE \49 --ws-external \51 --ws-external \50 --rpc-external \51 --rpc-cors all \52 --rpc-cors all \52 -lruntime \53 -lruntime \53 $BOOTNODES;54 $BOOTNODES;