Skip to content
Merged
Show file tree
Hide file tree
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 ethd
Original file line number Diff line number Diff line change
Expand Up @@ -3680,7 +3680,7 @@ prune-lighthouse() {
# Check for archive node
var="CL_NODE_TYPE"
__get_value_from_env "${var}" "${__env_file}" "__value"
if [[ "${__value}" = "archive" ]]; then
if [[ "${__value}" =~ archive$ ]]; then
echo "Lighthouse is an archive node: Aborting."
exit 1
fi
Expand Down
6 changes: 3 additions & 3 deletions lighthouse/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ fi
if [[ -n "${CHECKPOINT_SYNC_URL}" ]]; then
__checkpoint_sync="--checkpoint-sync-url=${CHECKPOINT_SYNC_URL}"
echo "Checkpoint sync enabled"
if [[ "${NODE_TYPE}" = "archive" ]]; then
__prune+=" --reconstruct-historic-states --genesis-backfill --disable-backfill-rate-limiting"
if [[ "${NODE_TYPE}" =~ archive$ ]]; then
__prune+=" --archive --genesis-backfill --disable-backfill-rate-limiting"
fi
else
__checkpoint_sync="--allow-insecure-genesis-sync"
Expand Down Expand Up @@ -169,7 +169,7 @@ done

if [[ -f /var/lib/lighthouse/beacon/prune-marker ]]; then
rm -f /var/lib/lighthouse/beacon/prune-marker
if [[ "${NODE_TYPE}" = "archive" ]]; then
if [[ "${NODE_TYPE}" =~ archive$ ]]; then
echo "Lighthouse is an archive node. Not attempting to prune state: Aborting."
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion lodestar/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ esac

# Check whether we should rapid sync
if [[ -n "${CHECKPOINT_SYNC_URL}" ]]; then
if [[ ! "${NODE_TYPE}" = "archive" ]]; then
if [[ ! "${NODE_TYPE}" =~ archive$ ]]; then
__checkpoint_sync="--checkpointSyncUrl=${CHECKPOINT_SYNC_URL}"
echo "Checkpoint sync enabled"
else
Expand Down
2 changes: 1 addition & 1 deletion prysm/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fi
# Check whether we should rapid sync
if [[ -n "${CHECKPOINT_SYNC_URL:+x}" ]]; then
__checkpoint_sync="--checkpoint-sync-url=${CHECKPOINT_SYNC_URL} --enable-backfill"
if [[ "${NODE_TYPE}" = "archive" ]]; then
if [[ "${NODE_TYPE}" =~ archive$ ]]; then
__checkpoint_sync+=" --backfill-oldest-slot 0"
fi
echo "Checkpoint sync enabled"
Expand Down
Loading