Sync problems with Geth — How to set up Parity quickly

Step 1 — Set up server

The first step consists of setting up a powerful server so that the sync takes as little time as possible. DigitalOcean provides very good options, but the most important thing is that they charge per hour. So, the idea is to spin a powerful server and install all the necessary software, sync the node, and then transfer all the files and database to a cheaper server.

  1. Ubuntu 16.04.3 x64
  2. High Memory — $0.446 per hour
  3. Choose a data center that you want
  4. No additional options necessary
  5. Add your ssh keys for access
  6. Finally, choose a host name

Step 2 — Install Software

The next step consists of installing the Parity code and also the Geth code to get access to the javascript console which is very handy. Note that the javascript console will then be connected to the Parity node to perform actions.

Step 3 — Run Parity

Steps 3 consists of running Parity for the sync with the following command:

Sync Results

In my results, I saw that the first 95% of the sync went very quickly (in less than 1 hour), but the next 200,000–400,000 blocks took more than 16 hours to complete. The rate was about 1000 blocks per minute, which is very slow when you have that many blocks to sync. However, the speed does change sometimes (for reasons I do not know yet). Of course, the results may differ in your case.

Step 4

Step 4 consists of setting up a less expensive server and use the existing database and files. First stop the parity sync on your server and then copy the contents of the following folder to your new server, at the same location.

--

--

Experienced in the Cryptocurrency and Blockchain technology and Founder of Codevigor and Horizon Africa, companies focused on the use of Blockchain technology.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Suyash Sumaroo

Suyash Sumaroo

Experienced in the Cryptocurrency and Blockchain technology and Founder of Codevigor and Horizon Africa, companies focused on the use of Blockchain technology.