diff --git a/bin/start.sh b/bin/start.sh index 4c33b360426b02f3d3f892ca9374015913d52058..d0aee91c393c6947c483a753d6fd311ea92d3eb6 100755 --- a/bin/start.sh +++ b/bin/start.sh @@ -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