From 1fa80fd3b83499128c40c3d198bcf515ccdeeb34 Mon Sep 17 00:00:00 2001 From: Victor Grau Serrat Date: Thu, 28 Nov 2019 23:02:11 -0600 Subject: [PATCH] BLD: added support for lonely-node --- enigma-p2p/start_worker.bash | 3 +++ 1 file changed, 3 insertions(+) diff --git a/enigma-p2p/start_worker.bash b/enigma-p2p/start_worker.bash index d3be05e..afa38e9 100755 --- a/enigma-p2p/start_worker.bash +++ b/enigma-p2p/start_worker.bash @@ -59,6 +59,9 @@ KM="http://$(getent hosts km | awk '{ print $1 }'):3040" echo "Starting ${NETWORK}_p2p_${INDEX} with Ethereum Address: ${eth_accounts[$INDEX - 1]} and the following command:" if [ "$INDEX" == 1 ]; then P2P_CMD="node cli_app.js -i B1 -b B1 -p B1 --core $CORE:5552 --ethereum-websocket-provider ws://$CONTRACT:9545 --ethereum-contract-address $ENIGMACONTRACT --proxy 3346 --random-db --principal-node $KM --ethereum-address ${eth_accounts[$INDEX - 1]} --auto-init" + if [ "$NODES" == 1 ]; then + P2P_CMD="$P2P_CMD --lonely-node" + fi echo $P2P_CMD cd enigma-p2p/src/cli && $P2P_CMD; bash else