@@ -30,6 +30,7 @@ source "${SCRIPT_DIR}/lib/bootstrap.sh"
3030source " ${SCRIPT_DIR} /lib/dashboard.sh"
3131
3232# Global variables
33+ DEFAULT_BUILD_BRANCH=" storage-node-fix"
3334VALIDATORS=()
3435DRY_RUN=false
3536DEBUG=false
@@ -74,7 +75,7 @@ Options:
7475 --dry-run Preview actions without executing
7576 --yes Skip confirmation prompts
7677 --debug Show verbose debug output
77- --branch NAME For bootstrap/update-binaries: git branch to pull from (default: main )
78+ --branch NAME For bootstrap/update-binaries: git branch to pull from (default: $DEFAULT_BUILD_BRANCH )
7879 --compile MODE For update-binaries: 'local' or 'remote' (default: remote)
7980 --git-pull For update-binaries: fetch/pull latest changes before build (default: off)
8081 --with-storage For bootstrap/update-binaries: build ipc-storage feature and storage binaries
@@ -94,14 +95,14 @@ Examples:
9495 $0 restart --mode local --yes # Restart local subnet
9596
9697 # Remote mode (multiple machines via SSH)
97- $0 bootstrap --branch main --with-storage # First: bootstrap fresh hosts (with storage binaries)
98+ $0 bootstrap --branch $DEFAULT_BUILD_BRANCH --with-storage # First: bootstrap fresh hosts (with storage binaries)
9899 $0 init # Then: initialize subnet from scratch
99100 $0 init --resume # Resume after deploy (skip wipe/deploy)
100101 $0 init --debug # Initialize with verbose debug output
101102 $0 check # Run health checks
102- $0 update-binaries --branch main # Update binaries from main branch
103- $0 update-binaries -C local --branch main # Build locally, deploy to validators
104- $0 update-binaries --branch main --with-storage # Update binaries with storage support
103+ $0 update-binaries --branch $DEFAULT_BUILD_BRANCH # Update binaries from default branch
104+ $0 update-binaries -C local --branch $DEFAULT_BUILD_BRANCH # Build locally, deploy to validators
105+ $0 update-binaries --branch $DEFAULT_BUILD_BRANCH --with-storage # Update binaries with storage support
105106 $0 deploy-binaries --path ./target/release # Copy binaries to all validators
106107 $0 watch-finality # Monitor parent finality progress
107108 $0 watch-blocks # Monitor block production
@@ -154,7 +155,7 @@ confirm() {
154155
155156# Bootstrap validator hosts - install deps and build IPC
156157cmd_bootstrap () {
157- local branch=" main "
158+ local branch=" $DEFAULT_BUILD_BRANCH "
158159 local with_storage=false
159160
160161 while [[ $# -gt 0 ]]; do
@@ -182,7 +183,7 @@ Bootstrap validator hosts with IPC and dependencies
182183Usage: $0 bootstrap [options]
183184
184185Options:
185- --branch NAME Git branch to clone (default: main )
186+ --branch NAME Git branch to clone (default: $DEFAULT_BUILD_BRANCH )
186187 --with-storage Build ipc-storage feature and storage binaries
187188 --config FILE Path to config file
188189 --dry-run Preview without executing
@@ -443,7 +444,7 @@ cmd_init() {
443444
444445# Update binaries on all validators
445446cmd_update_binaries () {
446- local branch=" main "
447+ local branch=" $DEFAULT_BUILD_BRANCH "
447448 local compile_mode=" remote"
448449 local with_storage=false
449450 local git_pull=false
@@ -470,7 +471,7 @@ Update IPC binaries on all validators
470471Usage: $0 update-binaries [options]
471472
472473Options:
473- --branch NAME Git branch to build from (default: main )
474+ --branch NAME Git branch to build from (default: $DEFAULT_BUILD_BRANCH )
474475 --compile MODE Where to build: 'local' or 'remote' (default: remote)
475476 -C MODE Short for --compile
476477 --git-pull Fetch/pull latest changes before build (default: off)
@@ -485,11 +486,11 @@ Compile modes:
485486 Requires: cargo-zigbuild + zig (recommended) or cross (needs Docker).
486487
487488Examples:
488- $0 update-binaries --branch main
489- $0 update-binaries --branch main --compile local
490- $0 update-binaries -C local --branch main
491- $0 update-binaries --branch main --git-pull
492- $0 update-binaries --branch main --with-storage
489+ $0 update-binaries --branch $DEFAULT_BUILD_BRANCH
490+ $0 update-binaries --branch $DEFAULT_BUILD_BRANCH --compile local
491+ $0 update-binaries -C local --branch $DEFAULT_BUILD_BRANCH
492+ $0 update-binaries --branch $DEFAULT_BUILD_BRANCH --git-pull
493+ $0 update-binaries --branch $DEFAULT_BUILD_BRANCH --with-storage
493494EOF
494495 exit 0
495496 ;;
0 commit comments