[node] adjust node.sh with the new -accounts option

Signed-off-by: Leo Chen <leo@harmony.one>
pull/996/head
Leo Chen 6 years ago
parent 5dd4848c2c
commit 6d3193b2e3
  1. 10
      scripts/node.sh

@ -85,11 +85,11 @@ if [[ $EUID -ne 0 ]]; then
fi fi
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "Usage: $0 account_index_number" echo "Usage: $0 account_address"
echo echo
echo "Please provide account index." echo "Please provide account address."
echo "For foundational nodes, please follow the instructions in discord #foundational-nodes channel" echo "For foundational nodes, please follow the instructions in discord #foundational-nodes channel"
echo "to get your account index number." echo "to generate and register your account address with <genesis at harmony dot one>"
echo echo
exit 1 exit 1
fi fi
@ -141,9 +141,9 @@ BN_MA=/ip4/100.26.90.187/tcp/9874/p2p/Qmdfjtk6hPoyrH1zVD9PEH4zfWLo38dP2mDvvKXfh3
echo "############### Running Harmony Process ###############" echo "############### Running Harmony Process ###############"
if [ "$OS" == "Linux" ]; then if [ "$OS" == "Linux" ]; then
# Run Harmony Node # Run Harmony Node
LD_LIBRARY_PATH=$(pwd) ./harmony -bootnodes $BN_MA -ip $PUB_IP -port $NODE_PORT -is_genesis -is_archival -account_index $IDX LD_LIBRARY_PATH=$(pwd) ./harmony -bootnodes $BN_MA -ip $PUB_IP -port $NODE_PORT -is_genesis -is_archival -accounts $IDX
else else
DYLD_FALLBACK_LIBRARY_PATH=$(pwd) ./harmony -bootnodes $BN_MA -ip $PUB_IP -port $NODE_PORT -is_genesis -is_archival -account_index $IDX DYLD_FALLBACK_LIBRARY_PATH=$(pwd) ./harmony -bootnodes $BN_MA -ip $PUB_IP -port $NODE_PORT -is_genesis -is_archival -accounts $IDX
fi fi
find_harmony_process find_harmony_process

Loading…
Cancel
Save