diff --git a/bin/libbfa.sh b/bin/libbfa.sh index e388eec6ef7e208c7957b9ec40f8914888de48d8..b2580e0baa5c82c4258a06d70bd442b9238c0b09 100644 --- a/bin/libbfa.sh +++ b/bin/libbfa.sh @@ -125,8 +125,8 @@ function nodedir test -d "${BFANODEDIR}/geth/chaindata" || fatal "Node is not initialised. Consider running: geth --datadir $BFANODEDIR init ${BFANETWORKDIR}/genesis.json" test -r "${BFANODEDIR}/port" || - echo $(( $RANDOM / 2 + 12345 )) > ${BFANODEDIR}/tcpport - httpport=$( cat ${BFANODEDIR}/tcpport ) + echo $(( $RANDOM / 2 + 12345 )) > ${BFANODEDIR}/netport + httpport=$( cat ${BFANODEDIR}/netport ) test -r "${BFANODEDIR}/rpcport" || echo $(( $RANDOM / 2 + 12345 )) > ${BFANODEDIR}/rpcport rpcport=$( cat ${BFANODEDIR}/rpcport ) diff --git a/bin/start.sh b/bin/start.sh index c54f0577bbc543ebb56006d93265c4360e0cc2a9..1b6f14f5f241ac298bc4d1593ed1f5067f3312d5 100755 --- a/bin/start.sh +++ b/bin/start.sh @@ -80,7 +80,7 @@ exec flock --nonblock --exclusive ${dir}/rpcport \ --networkid $BFANETWORKID \ --rpc \ --rpcport $rpcport \ - --port $tcpport \ + --port $netport \ --syncmode full \ --nousb \ --bootnodes "${bootnodes}" \