Skip to content

BLD: added support for lonely-node #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions enigma-p2p/start_worker.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down