Skip to content

How to make your running node synchronize the blockchain from scratch

Adrián Eidelman edited this page May 4, 2018 · 4 revisions

You can follow two different approaches to make your node start a blockchain synchronization from scratch:

Specifying a database reset in configuration file

To reset your node by configuration you need to:

  1. Stop your node

    sudo service rskj stop

  2. In your configuration file, change 'reset' parameter to true:

    reset = true

  3. Start your node again

    sudo service rskj start

Note: If you don't want database to be reset again after a new restart, set parameter to false again.

Removing database files manually

To reset your node's database manually you need to:

  1. Stop your node

    sudo service rskj stop

  2. Go to your database path as specified in your configuration file (e.g.: /var/lib/rsk/database) and remove files

    sudo rm -rf /var/lib/rsk/database/

  3. Start your node again

    sudo service rskj start

Clone this wiki locally