catchupsrv

command
v0.0.0-...-76c1feb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2021 License: AGPL-3.0 Imports: 29 Imported by: 0

README

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

  1. Create a new folder mkdir data.
  2. Download all blocks from the relevant network. For example, to download from mainnet with genesis mainnet-v1.0 run the following command:
    catchupsrv -dir data -download -network mainnet -genesis mainnet-v1.0
    
  3. Copy the data dir to an airgapped machine using you favorite method.

Offline (airgapped) machine

  1. Run the catchup server on some free port (e.g., 50000) and point it to your data dir:
    catchupsrv -dir data -addr localhost:50000
    
  2. Run algod with following command (where xx is your algorand data directory):
    goal node start -d xx -p localhost:50000
    

Now algod will catch up from the catchup server.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL