Skip to content

Commit

Permalink
If there's no startup policy, leave out the RPC checking code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderguy committed Dec 3, 2024
1 parent f1096f1 commit 470390b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/agave/assets/check-validator.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail

{{if .StartupPolicy }}
WAIT_FOR_RPC_HEALTH={{ or .StartupPolicy.WaitForRPCHealth false }}
RPC_BIND_ADDRESS={{.Flags.RpcBindAddress}}
RPC_PORT={{.Flags.RpcPort}}
Expand Down Expand Up @@ -29,3 +30,4 @@ done

echo "timed out waiting for validator to bring RPC online!" 1>&2
exit 1
{{end}}

0 comments on commit 470390b

Please sign in to comment.