Skip to content
Open
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
5 changes: 4 additions & 1 deletion default.env
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ NETHERMIND_FLATDB=
# If this URL is provided, an EL that supports EraE import will use it when fresh syncing
# "urls.txt", "checksums.txt" and "checksums_sha256.txt" must exist at the target url
ERE_URL=
# EraC URL, see https://ethresear.ch/t/era-archival-files-for-block-and-consensus-data/13526
# If this URL is provided, a CL that supports EraC import will use it when fresh syncing
ERC_URL=

# If you want debug logs, set this to debug instead of info
LOG_LEVEL=info
Expand Down Expand Up @@ -579,4 +582,4 @@ DOCKER_SOCK=/var/run/docker.sock
ALLOY_PROJECT_NAME=

# Used by ethd update - please do not adjust
ENV_VERSION=63
ENV_VERSION=64
1 change: 1 addition & 0 deletions nimbus-allin1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ services:
- jwtsecret:/var/lib/nimbus/ee-secret
environment:
- CHECKPOINT_SYNC_URL=${CHECKPOINT_SYNC_URL}
- ERC_URL=${ERC_URL}
- NETWORK=${NETWORK}
- JWT_SECRET=${JWT_SECRET}
- MEV_BOOST=${MEV_BOOST}
Expand Down
1 change: 1 addition & 0 deletions nimbus-cl-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ services:
- jwtsecret:/var/lib/nimbus/ee-secret
environment:
- CHECKPOINT_SYNC_URL=${CHECKPOINT_SYNC_URL}
- ERC_URL=${ERC_URL}
- NETWORK=${NETWORK}
- JWT_SECRET=${JWT_SECRET}
- MEV_BOOST=${MEV_BOOST}
Expand Down
1 change: 1 addition & 0 deletions nimbus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ services:
- jwtsecret:/var/lib/nimbus/ee-secret
environment:
- CHECKPOINT_SYNC_URL=${CHECKPOINT_SYNC_URL}
- ERC_URL=${ERC_URL}
- NETWORK=${NETWORK}
- JWT_SECRET=${JWT_SECRET}
- MEV_BOOST=${MEV_BOOST}
Expand Down
12 changes: 7 additions & 5 deletions nimbus/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ else
__network="--network=${NETWORK}"
fi

if [[ -n "${CHECKPOINT_SYNC_URL:+x}" && ! -f /var/lib/nimbus/setupdone ]]; then
if [[ "${NODE_TYPE}" = "archive" ]]; then
if [[ -n "${CHECKPOINT_SYNC_URL}" && -z "${ERC_URL}" && ! -f /var/lib/nimbus/setupdone ]]; then
if [[ "${NODE_TYPE}" =~ ^(archive|blob-archive)$ ]]; then
echo "Starting checkpoint sync with backfill and archive reindex. Nimbus will restart when done."
echo "NB: For this to work, the checkpoint server has to serve blocks. Use \"ERC_URL\" instead to fill with"
echo "EraC files."
# Word splitting is desired for the command line parameters
# shellcheck disable=SC2086
/usr/local/bin/nimbus_beacon_node trustedNodeSync --backfill=true --reindex ${__network} --data-dir=/var/lib/nimbus --trusted-node-url="${CHECKPOINT_SYNC_URL}"
Expand Down Expand Up @@ -134,9 +136,9 @@ fi
__log_level="--log-level=${LOG_LEVEL^^}"

case "${NODE_TYPE}" in
archive)
echo "Nimbus archive node without history pruning"
__prune="--history=archive"
archive|blob-archive)
echo "Nimbus archive node without history or blob pruning."
__prune="--history=archive --reindex"
;;
full)
__prune=""
Expand Down
Loading