how to bootstrap your wallet for a faster sync

How to bootstrap your wallet for a faster sync

Every bitcoin based wallet need to be synced with the blockchain in order to be able to receive, send, generate staking or masternode rewards.

The last post we´ve showed you how to verify if you´re on the correct blockchain. If your´re ok, than nothing has to be done, however if you´re on the wrong blockchain, you need to resync your wallet, or another faster way is to use a bootstrap.

Disclaimer

ONLY download bootstraps from a TRUSTED source! http://simpleexplorer.info belongs to Simple Pos Pool and all those files are trusted. PLEASE use ONLY wallets from original posts, or the coin’s website itself.  Avoid “updates” in forum threads, as they could potentially contain malware. Do not ever use an update from a direct discord message or bot. Do at your own RISK!

What is a bootstrap?

There are 2 types of bootstraps and they exist to speed up the sync process and sometimes also to help us land on the correct blockchain. The sync process is pretty fast and you don´t need a boostrap if the coin is only a few weeks old, but what if we talk about PIVX, Litecoin, Bitcoin, DOGE or any other coin that has already a few months or even years? This could take days….

Now let´s see the bootstrap types:

  • It´s a compressed file with all the blocks. Usually you´ll find these files and folders inside it: blocks, chainstate, sporks, zerocoin, peers.dat After using this bootstrap, it will only sync some files and blocks and it can take only some minutes before you´re able to send some coins. To create this type of bootstrap you need to close your wallet and zip these files into a single file.
  • This file can be compressed or a simple file called bootstrap.dat. Beeing a compressed file, the only content will also be a file called bootstrap.dat. The bootstrap.dat file contains the latest blockchain information needed to have your wallet synced and up-to-date. To create this type of bootstrap, close your wallet and inside your wallet´s home folder type: copy /b blk0001.dat+blkindex.dat bootstrap.dat   If there are more block files, then: copy /b blk0001.dat+blk0002.dat+blk0003.dat+blkindex.dat for example.

How can I bootstrap my wallet?

For this example we´ll use PEONY. You first need to know where the files are located. Usually these are the locations:

  • Linux: ~/.peony/
  • MacOS: On a mac the files can be hidden. Press Command + Shift + . to temporarily unhide the files.  $HOME/Library/Application Support/peony/  or  /Users/username/Library/Application Support/peony/
  • Windows: %APPDATA%\peony   or   C:\Users\<user_name>\AppData\Roaming\peony

Sometimes there can be another location because you simply designed it to be different when you first installed the wallet on your computer. In this case, open your wallet go to >SETTINGS>INFORMATION and you´ll see the data directory like this:

finda data folder

Just navigate to that folder and close your wallet. Wait untill it closes completely. For security reasons our advice is to create a copy of that folder just in case something goes wrong.

Inside the main folder, delete all files except wallet.dat and the *.conf files.

delete data folder

Download the bootstrap file

Simple Explorer creates a daily bootstrap file of any available coin inside the multi explorer. These daily bootstraps are like the first example where you´ll find the folders and the peers.dat file. For PEONY just go to http://simpleexplorer.info/coin/peony  and look for the link:

download peony bootstrap

Download it to the folder where you deleted the files from the previous step. Unzip it and you may delete that zipped file. You can download it whenever you want again and it will be always updated. Now it´s time to start your wallet and wait only a few minutes before you´re able to send any coins.

Happy earnings.

If you found this tutorial useful, just share it. We´ll appreciate yyour kind share