Skip to content

Commit

Permalink
Fixed issue #54
Browse files Browse the repository at this point in the history
  • Loading branch information
arocha committed Dec 21, 2017
1 parent 00ebe66 commit 94ebefe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ geth --datadir ~/alastria/data init ~/alastria-node/data/genesis.json
cd ~/alastria/data/geth
bootnode -genkey nodekey
ENODE_KEY=$(bootnode -nodekey nodekey -writeaddress)

if ( [ "backup" == "$1" ]); then
ENODE_KEY=$(bootnode -nodekey ~/alastria-keysBackup/data/geth/nodekey -writeaddress)
fi

echo "ENODE -> 'enode://${ENODE_KEY}@${CURRENT_HOST_IP}:21000?discport=0'"
update_nodes_list "enode://${ENODE_KEY}@${CURRENT_HOST_IP}:21000?discport=0"
cd ~
Expand Down

0 comments on commit 94ebefe

Please sign in to comment.