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 ...@@ -57,6 +57,11 @@ function startbootnode
function startmonitor 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 ERRTEXT="monitor section failed"
local pidfile=${BFANETWORKDIR}/monitor.pid local pidfile=${BFANETWORKDIR}/monitor.pid
( (
...@@ -109,15 +114,21 @@ function startgeth ...@@ -109,15 +114,21 @@ function startgeth
then then
flexargs="${flexargs} --verbosity ${BFAVERBOSITY:-3}" flexargs="${flexargs} --verbosity ${BFAVERBOSITY:-3}"
fi 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 set -x
geth \ geth \
--datadir ${BFANODEDIR} \ --datadir ${BFANODEDIR} \
--networkid ${BFANETWORKID} \ --networkid ${BFANETWORKID} \
--rpc \ --rpc \
--rpcapi "eth,net,web3,admin,clique,miner,personal" \
--gcmode archive \ --gcmode archive \
--cache 512 \
${flexargs} \ ${flexargs} \
--rpccorsdomain \* \
--bootnodes "${bootnodes}" & --bootnodes "${bootnodes}" &
set +x set +x
echo $! > ${BFANODEDIR}/geth.pid 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