Skip to content
Snippets Groups Projects
Commit 3a531cdb authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

incorrect sourcing of libbfa

parent b0f57904
No related branches found
No related tags found
No related merge requests found
#!/bin/bash trap "exit 1" ERR
if [ -n "$1" ]
then
dir="$1"
else
dir=node1
fi
SECONDS=$( date +%s )
cd `dirname $0`
#!/bin/bash
if [ -z "${BFAHOME}" ]; then echo "\$BFAHOME not set. Did you source bfa/bin/env ?" >&2; exit 1; fi
source ${BFAHOME}/bin/libbfa.sh || exit 1
function repeat
{
......@@ -18,6 +13,7 @@ function gen_genesis
local genesis="${BFANETWORKDIR}/genesis.json"
test -e "${genesis}" &&
return
SECONDS=$( date +%s )
bfaconfig account
nodes=$account
echo "** If you want extra nodes added, add them to nodes.remote.txt and run $0 again."
......@@ -60,9 +56,7 @@ function gen_genesis
# Create a genesis.json if one does not already exist
gen_genesis
# Fix on a random port number.
# Do I have IPv6?
bootnodeid=6c81b38551fec2f1142b58ed65137cc1b7dfdc7b35bc556ef26604c41e30fcdeb12212b3c19913584f71dc7bf87d76cd67fa523e96996c0f148390fb76fdc5f7
bootnodev6=2800:40:1:6::135
bootnodev4=200.68.65.135
......@@ -71,7 +65,7 @@ bootnodes="enode://${bootnodeid}@[$bootnodev6]:${bootnodeport},enode://${bootnod
set -x
# Start the miner.
exec flock --nonblock --exclusive ${dir}/rpcport \
exec flock --nonblock --exclusive ${BFANODEDIR}/rpcport \
geth \
--datadir ${BFANODEDIR} \
--unlock "$account" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment