Skip to content
Permalink
Browse files

remove nodiscover params

  • Loading branch information...
thanhson1085 committed Dec 19, 2017
1 parent 68e9f0f commit b93d6cf1f4f35e65e9420ff448da3023c9a0fb19
Showing with 3 additions and 3 deletions.
  1. +3 −3 tomochain/entrypoint.sh
@@ -4,9 +4,9 @@ if [ ! -d /build/tomochain/geth/chaindata ]
then
wallet=$(geth account new --password /build/.pwd --datadir /build/tomochain | awk -v FS="({|})" '{print $2}')
sed -i "s/:wallet:/${wallet}/g" /build/tomochain.json
geth --nodiscover --datadir /build/tomochain init tomochain.json
geth --nodiscover --datadir /build/tomochain --rpc --rpcaddr 0.0.0.0 --rpcport 8545 --unlock "${wallet}" --password /build/.pwd --mine
geth --datadir /build/tomochain init tomochain.json
geth --datadir /build/tomochain --rpc --rpcaddr 0.0.0.0 --rpcport 8545 --unlock "${wallet}" --password /build/.pwd --mine
else
wallet=$(geth account list --datadir /build/tomochain| head -n 1 | awk -v FS="({|})" '{print $2}')
geth --nodiscover --datadir /build/tomochain --rpc --rpcaddr 0.0.0.0 --rpcport 8545 --unlock "${wallet}" --password /build/.pwd --mine
geth --datadir /build/tomochain --rpc --rpcaddr 0.0.0.0 --rpcport 8545 --unlock "${wallet}" --password /build/.pwd --mine
fi

0 comments on commit b93d6cf

Please sign in to comment.
You can’t perform that action at this time.