ldgaetano / ergopad-quicknode

setup ergonode, fast

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get going with ERGO node, FAST!

These steps are meant to prepare an ergonode to sync quickly.

It can still take 30 mins or so to download the blockchain file and extract, so consider keeping that file around.

prereqs

apt update && apt install p7zip-full -y

download blockchain at ~700k height

this url may change at some point

wget -O ergo.7z https://pixeldrain.com/api/file/2rXoYooy?download

extract .ergo and optionally remove 7z archive

move to the directory where you want the .ergo folder, matching what you use in the ergo.conf file.

cd /data/ergo
7z x /download/ergo.7z
rm ergo.7z

download ergo jar file

You may prefer to keep the original filenames and cp to ergo.jar for testing, and to avoid re-downloading.
https://github.com/ergoplatform/ergo/releases

One way to minimize file space is to map the current jar file to /app/ergo.jar in compose.yml

wget https://github.com/ergoplatform/ergo/releases/download/v4.0.26/ergo-4.0.26.jar

start node

docker compose up -d


Additional

Don't forget to update your API hash

update the ergo.conf file with your key from the node blake2 api call

http://localhost:9053/swagger#/utils/hashBlake2b

If you want to refresh the container

If you change something in the conf file or update to latest jar file, you may want to refresh your instance:

docker compose up --force-recreate -d
docker compose up --build -d (if you make changes to the dockerfile)

About

setup ergonode, fast