How to make your running node synchronize the blockchain from scratch

Meri Herrera edited this page Jun 14, 2018 · 2 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 located in /etc/rsk, change 'reset' parameter to true:

    reset = true

  3. Start your node again

    sudo service rskj start

:exclamation: 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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.