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

Supporting $BFAVERBOSITY

parent 896d2996
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@ test -n "${BFAACCOUNT}" ||
function startbootnode
{
local ERRTEXT="bootnode section failed"
local keyfile=${BFANETWORKDIR}/bootnode/key
local pidfile=${BFANETWORKDIR}/bootnode/bootnode.pid
which bootnode >/dev/null 2>&1 || return 0
......@@ -81,6 +82,7 @@ function startbootnode
function startmonitor
{
local ERRTEXT="monitor section failed"
local pidfile=${BFANETWORKDIR}/monitor.pid
(
flock --nonblock --exclusive 9 || (
......@@ -104,6 +106,7 @@ function startmonitor
function startgeth
{
# Start the node.
local ERRTEXT="geth section failed"
which geth >/dev/null 2>&1 || return 0
(
flock --nonblock --exclusive 9 || (
......@@ -119,6 +122,7 @@ function startgeth
fi
while :
do
ERRTEXT="geth"
echo
echo '***'
echo
......@@ -126,17 +130,17 @@ function startgeth
flexargs="$( accountlist) $( getminer ) $( getsyncmode ) --extradata $( extradata )"
set -x
geth \
--datadir ${BFANODEDIR} \
--networkid ${BFANETWORKID} \
--bootnodes "${bootnodes}" \
--rpc \
--datadir ${BFANODEDIR} \
--networkid ${BFANETWORKID} \
--bootnodes "${bootnodes}" \
--rpc \
--rpcport $rpcport \
--rpcapi "eth,net,web3,admin,clique,miner,personal" \
--port $netport \
--nousb \
--gcmode archive \
--port $netport \
--nousb \
--gcmode archive \
--cache 512 \
--verbosity 3 \
--verbosity ${BFAVERBOSITY:-3} \
${flexargs} &
set +x
echo $! > ${BFANODEDIR}/geth.pid
......
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