automerge
This commit is contained in:
@ -168,6 +168,7 @@ identity_keypair_path=
|
|||||||
no_restart=0
|
no_restart=0
|
||||||
airdrops_enabled=1
|
airdrops_enabled=1
|
||||||
generate_snapshots=0
|
generate_snapshots=0
|
||||||
|
boot_from_snapshot=1
|
||||||
|
|
||||||
positional_args=()
|
positional_args=()
|
||||||
while [[ -n $1 ]]; do
|
while [[ -n $1 ]]; do
|
||||||
@ -185,6 +186,9 @@ while [[ -n $1 ]]; do
|
|||||||
elif [[ $1 = --generate-snapshots ]]; then
|
elif [[ $1 = --generate-snapshots ]]; then
|
||||||
generate_snapshots=1
|
generate_snapshots=1
|
||||||
shift
|
shift
|
||||||
|
elif [[ $1 = --no-snapshot ]]; then
|
||||||
|
boot_from_snapshot=0
|
||||||
|
shift
|
||||||
elif [[ $1 = --replicator ]]; then
|
elif [[ $1 = --replicator ]]; then
|
||||||
node_type=replicator
|
node_type=replicator
|
||||||
shift
|
shift
|
||||||
@ -422,6 +426,7 @@ EOF
|
|||||||
done
|
done
|
||||||
echo "Fetched genesis ledger in $SECONDS seconds"
|
echo "Fetched genesis ledger in $SECONDS seconds"
|
||||||
|
|
||||||
|
if ((boot_from_snapshot)); then
|
||||||
SECONDS=
|
SECONDS=
|
||||||
echo "Rsyncing state snapshot ${rsync_entrypoint_url:?}..."
|
echo "Rsyncing state snapshot ${rsync_entrypoint_url:?}..."
|
||||||
if ! $rsync -P "${rsync_entrypoint_url:?}"/config/state.tgz .; then
|
if ! $rsync -P "${rsync_entrypoint_url:?}"/config/state.tgz .; then
|
||||||
@ -438,6 +443,7 @@ EOF
|
|||||||
tar -C "$state_dir" -zxf "$SOLANA_RSYNC_CONFIG_DIR"/state.tgz
|
tar -C "$state_dir" -zxf "$SOLANA_RSYNC_CONFIG_DIR"/state.tgz
|
||||||
)
|
)
|
||||||
echo "Extracted snapshot in $SECONDS seconds"
|
echo "Extracted snapshot in $SECONDS seconds"
|
||||||
|
fi
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user