Skip to content

Commit

Permalink
Updates bootstrap and start scripts needed for local dev.
Browse files Browse the repository at this point in the history
  • Loading branch information
segfaultdoc committed Sep 25, 2023
1 parent 3055304 commit dcb7b3b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
30 changes: 12 additions & 18 deletions multinode-demo/bootstrap-validator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,30 +103,12 @@ while [[ -n $1 ]]; do
elif [[ $1 == --skip-require-tower ]]; then
maybeRequireTower=false
shift
elif [[ $1 == --trust-relayer-packets ]]; then
args+=("$1")
shift
elif [[ $1 == --trust-block-engine-packets ]]; then
args+=("$1")
shift
elif [[ $1 == --relayer-url ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --relayer-address ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --block-engine-url ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --block-engine-address ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --block-engine-auth-service-address ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --relayer-auth-service-address ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --tip-payment-program-pubkey ]]; then
args+=("$1" "$2")
shift 2
Expand All @@ -142,6 +124,18 @@ while [[ -n $1 ]]; do
elif [[ $1 = --log-messages-bytes-limit ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --geyser-plugin-config ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --trust-relayer-packets ]]; then
args+=("$1")
shift
elif [[ $1 == --rpc-threads ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --trust-block-engine-packets ]]; then
args+=("$1")
shift
else
echo "Unknown argument: $1"
$program --help
Expand Down
30 changes: 18 additions & 12 deletions multinode-demo/validator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,24 +85,12 @@ while [[ -n $1 ]]; do
vote_account=$2
args+=("$1" "$2")
shift 2
elif [[ $1 == --relayer-address ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --block-engine-url ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --block-engine-address ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --block-engine-auth-service-address ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --relayer-url ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --relayer-auth-service-address ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 = --merkle-root-upload-authority ]]; then
args+=("$1" "$2")
shift 2
Expand Down Expand Up @@ -212,6 +200,24 @@ while [[ -n $1 ]]; do
elif [[ $1 == --skip-require-tower ]]; then
maybeRequireTower=false
shift
elif [[ $1 == --rpc-pubsub-enable-block-subscription ]]; then
args+=("$1")
shift
elif [[ $1 == --geyser-plugin-config ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --trust-relayer-packets ]]; then
args+=("$1")
shift
elif [[ $1 == --rpc-threads ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --shred-receiver-address ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --trust-block-engine-packets ]]; then
args+=("$1")
shift
elif [[ $1 = -h ]]; then
usage "$@"
else
Expand Down

0 comments on commit dcb7b3b

Please sign in to comment.