Skip to content

Commit

Permalink
Add default RPC port depending on Zcash network
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
upbqdn committed Jul 6, 2023
1 parent 77ad91c commit a81c309
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/runtime-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ fi
: "${TRACING_ENDPOINT_PORT:=3000}"
# [rpc]
: "${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
Expand Down

0 comments on commit a81c309

Please sign in to comment.