diff --git a/README.md b/README.md index 7bbff88a..356d22ee 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,13 @@ In local network mode, you can optionally pass: - `testnet` sets limits to match those used on testnet (the default quickstart configuration) - `unlimited` sets limits to the maximum resources that can be configured +- `--enable {core, horizon, rpc}` to further select which services are started in the quickstart container. Since using a 'local' network, the core service will be started regardless as it runs the 'local' network, and these additional permutations of `--enable` are applicable: + - not specified, the default behavior will be to run core, horizon, friendbot, rpc. + - `core` only runs the stellar core and an associated archive server. + - `core,horizon` runs core, horizon, friendbot + - `horizon` runs core, horizon, friendbot + - `rpc` runs core, horizon, friendbot, rpc. + The network passphrase of the network defaults to: ``` Standalone Network ; February 2017 @@ -94,8 +101,6 @@ To run only select services, simply specify only those services. For example, to --enable rpc ``` -__Note: All services, and in addition friendbot, always run on a local network.__ - ### Faucet (Friendbot) Stellar development/test networks use friendbot as a faucet for the native asset. diff --git a/start b/start index dcbf6e53..399b82ad 100644 --- a/start +++ b/start @@ -176,6 +176,16 @@ function process_args() { NETWORK="testnet" fi + if [[ ",$ENABLE," = *",core,"* ]]; then + ENABLE_CORE=true + fi + if [[ ",$ENABLE," = *",horizon,"* ]]; then + ENABLE_HORIZON=true + fi + if [[ ",$ENABLE," = *",rpc,"* ]]; then + ENABLE_SOROBAN_RPC=true + fi + case "$NETWORK" in testnet) export NETWORK_PASSPHRASE="Test SDF Network ; September 2015" @@ -190,6 +200,9 @@ function process_args() { # h1570ry - we'll start a webserver connected to history directory later on export HISTORY_ARCHIVE_URLS="http://localhost:1570" ENABLE_CORE=true + if [[ "$ENABLE_SOROBAN_RPC" = "true" ]]; then + ENABLE_HORIZON=true + fi ;; futurenet) export NETWORK_PASSPHRASE="Test SDF Future Network ; October 2022" @@ -200,16 +213,6 @@ function process_args() { exit 1 esac - if [[ ",$ENABLE," = *",core,"* ]]; then - ENABLE_CORE=true - fi - if [[ ",$ENABLE," = *",horizon,"* ]]; then - ENABLE_HORIZON=true - fi - if [[ ",$ENABLE," = *",rpc,"* ]]; then - ENABLE_SOROBAN_RPC=true - fi - if [ "$RANDOMIZE_NETWORK_PASSPHRASE" = "true" ]; then NETWORK_PASSPHRASE="${NETWORK_PASSPHRASE} ; $(openssl rand -hex 32)" fi