Add --entry-stream support

This commit is contained in:
Michael Vines 2019-02-15 22:52:27 -08:00
parent 9eb8b67b5c
commit b79d361e6c
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
1 changed files with 6 additions and 1 deletions

View File

@ -29,6 +29,7 @@ else
program="$solana_fullnode"
fi
maybe_entry_stream=
maybe_init_complete_file=
maybe_no_leader_rotation=
@ -36,6 +37,9 @@ while [[ -n $1 ]]; do
if [[ $1 = --init-complete-file ]]; then
maybe_init_complete_file="--init-complete-file $2"
shift 2
elif [[ $1 = --entry-stream ]]; then
maybe_entry_stream="$1 $2"
shift 2
elif [[ $1 = --no-leader-rotation ]]; then
maybe_no_leader_rotation="--no-leader-rotation"
shift
@ -57,8 +61,9 @@ tune_system
trap 'kill "$pid" && wait "$pid"' INT TERM
$solana_ledger_tool --ledger "$SOLANA_CONFIG_DIR"/bootstrap-leader-ledger verify
# shellcheck disable=SC2086 # Don't want to double quote maybe_init_complete_file
# shellcheck disable=SC2086 # Don't want to double quote maybe_entry_stream or maybe_init_complete_file
$program \
$maybe_entry_stream \
$maybe_init_complete_file \
$maybe_no_leader_rotation \
--identity "$SOLANA_CONFIG_DIR"/bootstrap-leader.json \