Skip to content
Closed
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
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
COINBASE: ""
VALIDATOR_PRIVATE_KEYS: ""
BLOB_SINK_URL: ""
SYNC_SNAPSHOTS_URL: ""
LOG_LEVEL: "info"
restart: unless-stopped
volumes:
Expand Down
1 change: 1 addition & 0 deletions package_variants/sepolia/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
environment:
ETHEREUM_HOSTS: http://geth.sepolia-geth.dappnode:8545
L1_CONSENSUS_HOST_URLS: http://prysm-sepolia.dappnode:3500
SYNC_SNAPSHOTS_URL: https://aztec.denodes.xyz/snapshot/
ports:
- 40400:40400/tcp
- 40400:40400/udp
2 changes: 2 additions & 0 deletions sequencer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ ENV NETWORK=${NETWORK} \
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh

RUN apt-get update && apt-get install -y lz4 wget

ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
12 changes: 12 additions & 0 deletions sequencer/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ FLAGS=(
--network "$NETWORK"
)

# — Download snapshot only if empty
if [ -z "$(ls -A /data/aztec-alpha-testnet.tar.lz4)" ]; then
echo "[INFO - entrypoint] Target folder is empty, downloading snapshot..."
wget https://files5.blacknodes.net/aztec/aztec-alpha-testnet.tar.lz4 -O /data/aztec-alpha-testnet.tar.lz4
lz4 -d /data/aztec-alpha-testnet.tar.lz4 /data/aztec-alpha-testnet.tar
tar -xvf /data/aztec-alpha-testnet.tar -C /
rm /data/aztec-alpha-testnet.tar
echo "[INFO - entrypoint] Snapshot download and extraction completed"
else
echo "[INFO - entrypoint] Target folder is not empty, skipping snapshot download"
fi

# — Append fixed mode flags
FLAGS+=(--archiver --node --sequencer)

Expand Down