Add default RPC port depending on Zcash network (#7162)
The `runtime-entrypoint.sh` uses the `RPC_PORT` env var when the user specifies the `getblocktemplate-rpc` feature, but this env var is unset unless the user sets it. This commit sets the default values for `RPC_PORT` depending on `NETWORK`.
This commit is contained in:
parent
c1695c35e2
commit
1014e3c785
|
|
@ -31,6 +31,11 @@ fi
|
||||||
: "${TRACING_ENDPOINT_PORT:=3000}"
|
: "${TRACING_ENDPOINT_PORT:=3000}"
|
||||||
# [rpc]
|
# [rpc]
|
||||||
: "${RPC_LISTEN_ADDR:=0.0.0.0}"
|
: "${RPC_LISTEN_ADDR:=0.0.0.0}"
|
||||||
|
if [[ "${NETWORK}" = "Mainnet" ]]; then
|
||||||
|
: "${RPC_PORT:=8232}"
|
||||||
|
elif [[ "${NETWORK}" = "Testnet" ]]; then
|
||||||
|
: "${RPC_PORT:=18232}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Populate `zebrad.toml` before starting zebrad, using the environmental
|
# Populate `zebrad.toml` before starting zebrad, using the environmental
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue