Skip to content

Commit 773133e

Browse files
mananufdimka90
andauthored
feat(gean): wire checkpoint sync through quickstart launcher (#142)
Forward `checkpoint_sync_url` into Gean's binary and Docker launch commands so `--restart-client` can restart Gean with `--checkpoint-sync-url` in lean-quickstart. Co-authored-by: dimka90 <dimkayilrit@gmail.com>
1 parent a96b514 commit 773133e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

client-cmds/gean-cmd.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ if [ -n "$attestationCommitteeCount" ]; then
1818
attestation_committee_flag="--attestation-committee-count $attestationCommitteeCount"
1919
fi
2020

21+
# Set checkpoint sync URL when restarting with checkpoint sync
22+
checkpoint_sync_flag=""
23+
if [ -n "${checkpoint_sync_url:-}" ]; then
24+
checkpoint_sync_flag="--checkpoint-sync-url $checkpoint_sync_url"
25+
fi
26+
2127
# Resolve binary path relative to the script location
2228
# Fallback to absolute path if scriptDir is not available
2329
BASE_DIR="${scriptDir:-$(pwd)}"
@@ -36,6 +42,7 @@ node_binary="$gean_bin \
3642
--devnet-id \"${devnet:-devnet0}\" \
3743
--api-port $apiPort \
3844
$metrics_flag \
45+
$checkpoint_sync_flag \
3946
$attestation_committee_flag \
4047
$aggregator_flag"
4148

@@ -53,7 +60,8 @@ node_docker="ghcr.io/geanlabs/gean:devnet3 \
5360
--devnet-id ${devnet:-devnet0} \
5461
--api-port $apiPort \
5562
$metrics_flag \
63+
$checkpoint_sync_flag \
5664
$attestation_committee_flag \
5765
$aggregator_flag"
5866

59-
node_setup="docker"
67+
node_setup="docker"

0 commit comments

Comments
 (0)