Synchronizing the Cardano blockchain from scratch will take a long time, depending on your CPU and network connection it could take up to several days.
Mainnet
# go to your cnode folder
cd /home/cardano/cnode
# delete current db
rm -rf db
# download mithril
wget https://github.com/input-output-hk/mithril/releases/download/2430.0/mithril-2430.0-linux-x64.tar.gz
# unzip
tar -xvzf mithril-2430.0-linux-x64.tar.gz
# Cardano network
export CARDANO_NETWORK=mainnet
# Aggregator API endpoint URL
export AGGREGATOR_ENDPOINT=https://aggregator.release-mainnet.api.mithril.network/aggregator
# Genesis verification key
export GENESIS_VERIFICATION_KEY=$(wget -q -O - https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/release-mainnet/genesis.vkey)
#Download snapshot
mithril-client cardano-db download latest
We will use the cSnapshots.io service to download the latest snapshot for a faster boot.
downloading and extracting the DB archive (to save space, it will stream the archive and extract it on the fly - without storing the downloaded archive itself)