Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .scripts/update-config-settings
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fi
# stellar-cli's major version tracks the protocol it supports. If testnet has
# advanced beyond it, `stellar network settings` silently omits settings the
# older XDR doesn't know about, so fail loudly to prompt bumping the pinned CLI.
cli_protocol="$(stellar version | head -n1 | sed -E 's/^stellar ([0-9]+).*/\1/')"
cli_protocol="$(stellar version --only-version-major)"
if [ "$protocol" -gt "$cli_protocol" ]; then
echo "error: testnet is on protocol $protocol but stellar-cli supports protocol $cli_protocol; bump the pinned stellar-cli version" >&2
exit 1
Expand Down
Loading