bootstrap.dat

From Litecoin Wiki
Jump to: navigation, search

bootstrap.dat allows a new Litecoin client (not synced) to rapidly import the initial blocks from a local file instead of slowly downloading blocks from random peers. This significantly reduces the time it takes to get a client synced with the current blockchain.

Simply having bootstrap.dat in Litecoin's expected data directory will make your initial block sync much faster. The import process can be even faster if you use the -dbcache=1000 command line parameter which uses an additional 1GB of RAM for the database index cache. Litecoin v0.8.5.2+ with SSE2 PoW validation can make import even faster if you have SSD drives.

Overview

Regardless of your operating system use the following steps to make use of the bootstrap.dat file:

  1. Download bootstrap.dat.xz from mirrors or torrent.
  2. Verify the integrity of bootstrap.dat.xz with the checksums.
  3. Decompress to obtain bootstrap.dat.
  4. Put it into the Litecoin datadir. This is the same folder that contains wallet.dat and the blocks folder.
  5. Delete bootstrap.dat.old if you want to recover some storage space.

Download bootstrap.dat

You can download bootstrap.dat from the following locations (please use the torrent unless you need a direct download:

Torrents
http://www.lurkmore.com/litecoin-bootstrap/
Direct downloads
http://ltc.noshit.pl/bootstrap/bootstrap.dat.xz

Verify integrity

For the file bootstrap.dat.xz:

MD5 
ee6ddb2fcb59ce16be487426d6b7dd6f
SHA-1 
1cc607358b389a8286d163d605f29e7bdebc7dff
sha256sum 
6e3407985d0561626db66525163e4a340ce7b002f814e628a1e3aee9aea6c574

Extract bootstrap.dat

Linux
xz -d bootstrap.dat.xz
Mac
You can obtain xz from MacPorts or http://macpkg.sourceforge.net/.
Windows
7Zip is a free utility that can decompress .xz files. The latest version of WinRAR also supports .xz files.

Copy bootstrap.dat to data directory

Copy bootstrap.dat to your data directory. After Litecoin has used bootstrap.dat, the file will be renamed to bootstrap.dat.old; at this point you can choose to delete it or keep it.

Linux
Litecoin's data directory is located in ~/.litecoin/ by default. You can run ls -a to see directories that start with a dot.
You can also search for the directory with the following command: find / -name wallet.dat -print 2>/dev/null
Mac
Litecoin's data directory should be located in ~/Library/Application Support/Litecoin/.
Windows
Go to Start>Run (or press WinKey+R) and run: explorer %APPDATA%\Litecoin
Litecoin's data directory will open. "AppData" and "Application Data" are hidden by default in Windows.

Data directory location

Operating system Default data directory location Typical path to configuration file
Linux $HOME/.litecoin/ /home/<username>/.litecoin/litecoin.conf
Mac $HOME/Library/Application Support/Litecoin/ /Users/<username>/Library/Application Support/Litecoin/litecoin.conf
Windows %APPDATA%\Litecoin\ XP -- C:\Documents and Settings\<username>\Application Data\Litecoin\litecoin.conf

Vista, 7 -- C:\Users\<username>\AppData\Roaming\Litecoin\litecoin.conf

Related articles

External links