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

Habilitar que start.sh puede arrancar un nodo transaccional abierto (opentx)

parent 5115ecf3
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,11 @@ function startbootnode
function startmonitor
{
if [ -e "${BFANODEDIR}/opentx" ]
then
echo "Monitor uses functions which are disabled when running an opentx node, so monitor not started."
return
fi
local ERRTEXT="monitor section failed"
local pidfile=${BFANETWORKDIR}/monitor.pid
(
......@@ -109,15 +114,21 @@ function startgeth
then
flexargs="${flexargs} --verbosity ${BFAVERBOSITY:-3}"
fi
if [ -e "${BFANODEDIR}/opentx" ]
then
# INADDR_ANY
flexargs="${flexargs} --rpcapi eth,net,web3,clique --rpcaddr 0.0.0.0 --rpcvhosts localhost,opentx.bfa.ar"
else
flexargs="${flexargs} --rpcapi eth,net,web3,admin,clique,miner,personal"
fi
set -x
geth \
--datadir ${BFANODEDIR} \
--networkid ${BFANETWORKID} \
--rpc \
--rpcapi "eth,net,web3,admin,clique,miner,personal" \
--gcmode archive \
--cache 512 \
${flexargs} \
--rpccorsdomain \* \
--bootnodes "${bootnodes}" &
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