How to use the catchup server
The catchup server allow to download the blockchain into an airgapped machine, so that it is possible to run
algod on the airgapped machine without access to the Internet.
Online machine: download the blockchain
- Create a new folder
- Download all blocks from the relevant network. For example, to download from
mainnet-v1.0run the following command:
catchupsrv -dir data -download -network mainnet -genesis mainnet-v1.0
- Copy the
datadir to an airgapped machine using you favorite method.
Offline (airgapped) machine
- Run the catchup server on some free port (e.g., 50000) and point it to your data dir:
catchupsrv -dir data -addr localhost:50000
algodwith following command (where
xxis your algorand data directory):
goal node start -d xx -p localhost:50000
algod will catch up from the catchup server.