bootstrap.dat

From Litecoin Wiki
Revision as of 21:04, 10 November 2015 by Losh11 (Talk | contribs) (Download bootstrap.dat)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:

bootstrap.dat was last built on 2015-11-09.
Torrent 
Litecoin bootstrap.dat torrent
Direct downloads 
LitecoinNode Project

Verify integrity - For Torrent

For the torrented copy of bootstrap.dat.xz:

CRC-32 
03ba4288
MD4 
cfe24a00d9d5de0e343fc3d727de6cf1
MD5 
c81dc36666f6179fac197e3d4dc0852f
SHA-1 
ee390fd544c8378a82684b5963c20b30f308ebaf

Verify integrity - For Direct Download

For the LitecoinNode direct link for bootstrap.dat.xz:

MD5 
3b983b4943dfec16ec5e4d0ec28f8dec
SHA1
dc59d08b64893c18f5b0528d1f0d3abf75253fcc
SHA256
c4d0f9b166fb3a7d6a0e924a84e1a0da98b9dbab6667e7cd862fb84b94d8a7f0

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