Syncing and operating a Canto archive node is a time-consuming process. For convenience, consider provisioning a dedicated archive node with Ansybl.
You may wish to archive the entire history of the Canto blockchain in order to index it with a Graph node or to roll your own block explorer. This means spinning up an archive node.
Complete step-by-step instructions for launching an archive node are provided below. If you're already comfortable installing and upgrading cantod, see step four for archive-specific config details.
As of block 2,500,000, the full archive state of Canto uses approximately 600GB of storage.
State breaking software upgrades took place at blocks:
218225 (v2.0.0)
1231500 (v3.0.0)
1274863 (v4.0.0)
2669495 (v5.0.0)
5144100 (v6.0.0)
6055770 (v7.0.0)
Important: v2.0.0 may cause AppHash errors at blocks that contained governance proposals (e.g. 804212). To avoid this, build from the thomas/archive-patch branch instead.
Upon reaching these blocks while syncing an archive node, the node will halt and throw an error every time it restarts until you update the binary. To do so, follow these steps:
For future binary upgrades, you will need to git pull to fetch the updated binary before you attempt to install it.
# Add seed peer to config.toml
sed -i 's/seeds = ""/seeds = "[email protected]:15556"/g' $HOME/.cantod/config/config.toml
# Set minimum gas price in app.toml
sed -i 's/minimum-gas-prices = "0acanto"/minimum-gas-prices = "0.0001acanto"/g' $HOME/.cantod/config/app.toml
# Set pruning in app.toml
sed -i 's/pruning = "default"/pruning = "nothing"/g' $HOME/.cantod/config/app.toml