Skip to content

PRYSM NETWORK

Prysm banner
  1. Stop node:
    Terminal window
    sudo systemctl stop prysmd
  2. Backup priv_validator_state.json & reset data
    Terminal window
    cp $HOME/.prysm/data/priv_validator_state.json $HOME/.prysm/priv_validator_state.json.backup
  3. Install tool
    Terminal window
    sudo apt-get install wget lz4 aria2 pv -y
  4. Download snapshot:

    Prune snapshot:  1477765          |         Archive snapshot:  1478386

    Terminal window
    #pruning = "custom", pruning-keep-recent = "100", pruning-interval = "10"
    cd $HOME
    rm -f prysm_snapshot.lz4
    aria2c -x 16 -s 16 -k 1M https://josephtran.co/prysm/prysm_snapshot.lz4
  5. Reset data
    Terminal window
    prysmd tendermint unsafe-reset-all --home $HOME/.prysm --keep-addr-book
  6. Decompress snapshot
    Terminal window
    lz4 -dc prysm_snapshot.lz4 | pv | tar -xf - -C $HOME/.prysm
  7. Move priv_validator_state.json back
    Terminal window
    cp $HOME/.prysm/priv_validator_state.json.backup $HOME/.prysm/data/priv_validator_state.json
  8. Restart node
    Terminal window
    sudo systemctl restart prysmd && sudo systemctl status prysmd