Install utilities for getting the snapshot, and verifying the signature:
sudo apt-get install -y pixz aria2 gpg
The FIO GPG signing key is available on keybase:
curl -s 'https://keybase.io/fiosec/pgp_keys.asc?fingerprint=0cfee764b06d009f7574a253c0e61f8441b6aad4' | gpg --import
Releases can be pulled either from the Github release page or the latest version is available at the following URLs:
curl -sO https://bin.fioprotocol.io/mainnet/fioprotocol-3.1.x-latest-ubuntu-18.04-amd64.deb
curl -sO https://bin.fioprotocol.io/mainnet/fioprotocol-3.1.x-latest-ubuntu-18.04-amd64.deb.asc
Signature verification:
gpg --verify fioprotocol-3.1.x-latest-ubuntu-18.04-amd64.deb.asc fioprotocol-3.1.x-latest-ubuntu-18.04-amd64.deb
Should result in output similar to:
gpg: Signature made Thu 27 Aug 2020 08:22:06 PM UTC
gpg: using RSA key 0CFEE764B06D009F7574A253C0E61F8441B6AAD4
gpg: Good signature from "FIO Security <[email protected]>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 0CFE E764 B06D 009F 7574 A253 C0E6 1F84 41B6 AAD4
sudo apt install ./fioprotocol-3.1.x-latest-ubuntu-18.04-amd64.deb
Edit the settings for nodeos
sudo vi /etc/fio/nodeos/config.ini
If the light-history (aka v1 history) feature is needed, add the following lines:
plugin = eosio::history_plugin
plugin = eosio::history_api_plugin
filter-on = *
filter-out = eosio:onblock:
history-per-account = 9223372036854775807
history-index-state-db-size-mb = 1000000
history-state-db-size-mb = 4000000
P2P nodes are updated more frequently than the .deb package, if there are a large number of P2P nodes that are unreachable, it's possible to get a list of healthy nodes from the FIO Mainnet Health page.
Optional: there are daily snapshots available that can greatly reduce the time required to install a new node:
Fetch, extract, and update permissions for the archive:
aria2c -j 10 -x 10 https://snap.blockpane.com/mainnet-latest-history.txz
sudo tar -xvS -I'pixz' -C /var/lib/fio -f mainnet-latest-history.txz
sudo chown -R fio:fio /var/lib/fio
Enable nodeos daemon at runtime, and start:
sudo systemctl enable fio-nodeos
sudo systemctl start fio-nodeos
Sync status will show in the logs:
tail -f /var/log/fio/nodeos.log