Skip to content

crebsy/moonsnap-downloadoor

Repository files navigation

moonsnap-downloadoor


This is a tool for snappy bootstrapping of new full and archive nodes. It saves between 66% and 99.2% of the time required to sync a new node from scratch.

Usage

  1. Get a SNAP_KEY from https://warpcast.com/crebsy/0xc021a0cf
  2. Compile or download the binary from https://dl.moonsnap.xyz/moonsnap
  3. Download the snap to your infra with max speed 🚀
  4. Start your node and let it sync only a small diff to reach the head of the chain

Configuration

Run with pre-built binary

There's a pre-built binary which can be used directly:

curl https://dl.moonsnap.xyz/moonsnap -o moonsnap
chmod +x moonsnap
./moonsnap <YOUR_SNAP_KEY> <YOUR_OUT_DIR>

Run with docker

You can also use our pre-built docker image: ghcr.io/crebsy/moonsnap-downloadoor To start, set the following env variables:

docker run -e MOONSNAP_SNAP_KEY=<YOUR_SNAP_KEY> -e MOONSNAP_OUT_DIR=<YOUR_OUT_DIR> -d ghcr.io/crebsy/moonsnap-downloadoor

Build locally

You can also build the binary yourself:

git clone https://github.com/crebsy/moonsnap-downloadoor.git
cd moonsnap-downloadoor
go build -o moonsnap
./moonsnap <YOUR_SNAP_KEY> <YOUR_OUT_DIR>

Performance

Sync comparison

Node sync time with moonsnap time saving snap size
erigon 3 archive ~12 hours ~4 hours 66% 1.6 TB
erigon 3 full ~36 hours ~55 minutes 97.5% 978 GB
reth 1.0.3 archive ~72 hours ~3 hours 96% 2.2 TB
reth 1.0.1 full ~48 hours ~70 minutes 97.5% 1.1 TB
lighthouse 5.2.1 ~17 hours ~8 minutes 99.2% 140 GB

Hardware specs

network: 2.5Gbps

disks: RAID0 4x WD Black SN850X NVME 4TB

cpu: AMD Ryzen 9 5900X 12-Core Processor

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published