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
40 - RPCPORT=993640 - RPCPORT=9936
41 - BOOTNODE=False41 - BOOTNODE=False
42 - BOOTPORT=3033542 - BOOTPORT=30335
43 - BOOTID=12D3KooWRYNrSRQvJ73esUhpyETQNJWGfC2LQ9dW3HJtzHJM28Hc43 - BOOTID=12D3KooWRLrjXxByPkSCzcsRyf6652brnJT9s4AQHR3uujJ35mxz
44 - VALIDATOR=True44 - VALIDATOR=True
4545
46 node_bohr:46 node_bohr:
62 - RPCPORT=993462 - RPCPORT=9934
63 - BOOTNODE=False63 - BOOTNODE=False
64 - BOOTPORT=3033564 - BOOTPORT=30335
65 - BOOTID=12D3KooWRYNrSRQvJ73esUhpyETQNJWGfC2LQ9dW3HJtzHJM28Hc65 - BOOTID=12D3KooWRLrjXxByPkSCzcsRyf6652brnJT9s4AQHR3uujJ35mxz
66 - VALIDATOR=False66 - VALIDATOR=False
67 67
68networks: 68networks:
modifiedrun-testnet.shdiffbeforeafterboth
8echo RPC Port : $RPCPORT8echo RPC Port : $RPCPORT
99
10echo Boot = $BOOTNODE10echo Boot = $BOOTNODE
11echo Validator = $VALIDATOR
1112
12if [ "$BOOTNODE" = True ]; 13if [ "$BOOTNODE" = True ];
13then14then
14echo This is a Bootnode;15echo This is a Bootnode;
15BOOTNODES="";16BOOTNODES="";
17NODEKEY="--node-key-file einstein_key_file";
16else18else
17echo 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="";
20fi23fi
2124
22if [ "VALIDATOR" = True ];25if [ "$VALIDATOR" = True ];
23then26then
24echo 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;
38else42else
39echo 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;