Bootstraps
A bootstrap file is a backup of the blockchain in a simple database flat file
Lynx Bootstrap files are regularly created and posted on the Official Lynx Bootstrap Repo at Github. These are the trusted bootstraps created by the Lynx Core team.
Download a Lynx Bootstrap Archive
This download script should only be used if you have Lynx already installed on your Linux OS. The script will expect to find the ~/.lynx/ directory, so be sure the script executes in the correct Linux user account.
The following script will allow you to reassemble segments into a single, usable bootstrap.dat file. The script will place the newly created bootstrap.dat file in the ~/.lynx directory on your Lynx node. It would be best if you restarted the Lynx daemon manually after the bootstrap file had been created. The Lynx daemon will notice its presence on a restart and index it. This process can take a while, but it will be completed without error if left alone. Viewing the debug log stream will display the import process.
wget -qO - https://raw.githubusercontent.com/getlynx/LynxBootstrap/master/extract.sh | bash
For research purposes, the extract script above allows tag parameters if you prefer to restore a bootstrap tag that is not the latest version. The newest version is always the default if the tag parameter is not supplied.
wget -qO - https://raw.githubusercontent.com/getlynx/LynxBootstrap/master/extract.sh | bash -s v10.0-mainnet
Create a Lynx Bootstrap Archive
The following script will allow you to create backups of the Lynx Blockchain. When the script is completed, you will have a list of segments and a single manifest file. Save all of these together. The manifest file provides hashes of the segments for verification purposes for reassembly.
wget -qO - https://raw.githubusercontent.com/getlynx/LynxBootstrap/master/archive.sh | bash
The archive script is designed to scale well. A single bootstrap.dat file can become very large as the Lynx Blockchain grows. The archive script creates segments of the larger file that are 125MB each. They are labeled in order, and a manifest file of hashes is designed to ensure the files are undamaged during the reassembly process.
LynxCI Installer
The LynxCI installer script handles the above restore processes for you. The script will automatically pull down the latest bootstrap files and reassemble them. If you are installing Lynx on Linux with the LynxCI installer script or ISO for Pi, you don't need to do any of these steps - they are automated.
Last updated