80

Every time I turn on the Bitcoin client it takes days to catch up with the block chain.

Are there alternatives to getting it trickling through the peer-to-peer network? Can I just download it somewhere? Wouldn't this be ideal for distribution via BitTorrent?

If so, how do I import it into the Bitcoin client?

My client would still be validating this data (can it?), and it is all signed and proof-of-worked, so there is no real security problem here, is there?

3
  • Apparently this does not speed up the time it takes to import and validate the block chain much, because the cryptographic calculations are the bottle neck, not the network I/O. But still, downloading everything first and validating later reduces the time you need a working network connection. Validation can be done offline, too.
    – Thilo
    Nov 27, 2011 at 23:16
  • Good question! I was going to ask "How long is it supposed to take to download all blocks from the transaction history?". Short answer is: the times it takes to download a 1.4GB file, plus a bit more to get the latest blocks from peers.
    – rds
    Feb 18, 2012 at 15:49
  • Can I know the from where i can download a sample of blockchain for some basic analysis?
    – Ankita
    Jul 10, 2015 at 14:54

7 Answers 7

28

Note by Murch: This download link is broken and it seems unlikely to me that anyone still provides this service. Network and synchronization code have been immensely improved over the years so that the initial block download via the network is usually acceptably fast.

You can download the blockchain nightlies handled by tcatm (one of the Bitcoin core developers and the operator of bitcoincharts.com). Unpack and copy&replace blkindex.dat, blk0001.dat files into C:\Users\"username"\AppData\Roaming\Bitcoin for Windows 7, and run bitcoind with the -rescan option. Then it will take only a couple minutes to download up to latest block. Be aware that manually copied blocks won't get verified.

11
  • 5
    The -rescan option doesn't verify blocks. It only checks for transactions that affect your wallet. It shouldn't take very long, not more than 10 minutes or so. (And you must do this if you use the nightlies. Otherwise you won't show or be able to spend any Bitcoins you received in blocks you didn't download from the Bitcoin network.) Sep 9, 2011 at 8:34
  • 4
    Are those .dat files portable? Or only work on Windows 7?
    – Thilo
    Sep 9, 2011 at 8:58
  • 4
    it should be interchangeable, bitcointalk.org/index.php?topic=26044.0
    – Serith
    Sep 9, 2011 at 9:10
  • 2
    The only issue would be if you compiled the client yourself and used a different version of BerkeleyDB. Otherwise, it should work on all platforms. Sep 9, 2011 at 9:11
  • 19
    This is to report a rotten link :( Feb 24, 2013 at 9:53
14

This was an issue with versions of the client prior to 0.3.24 -- once the vast majority of the network switches over, the block chain downloads should proceed as fast as your CPU and network connection can handle.

There are places you can download the block chain, but the client doesn't provide a way to accept the block chain in any form other than from the network. If you're starting from nothing, it will generally take about 10 hours to process the whole block chain. Most of it isn't transfer time, it's CPU time validating all the hashes and signatures.

6
  • 1
    +1 If it really takes 10 hours to validate the chain when reading from a local file, then I guess I have to give up on the idea... Is there a way to know which versions everyone is on?
    – Thilo
    Sep 9, 2011 at 7:58
  • Watch your CPU usage while you sync up. Unfortunately, the client can't really take advantage of multiple cores as it catches up. The right ultimate solution is for most people not to run the client but to instead run a lighter piece of software that only does what they actually need. Sep 9, 2011 at 8:02
  • @Thilo You could "divide" it. So 10 days, 1 hour each.
    – Pacerier
    Jun 17, 2012 at 18:32
  • A lot of people want to use Armory as their bitcoin client, which really makes the idea of using a light bitcoin client impossible, unfortunately. I submitted a request to etotheipi to add in an option to Armory to load the blockchain from a server, and he said it's something he might do in the future, but it's pretty low on his list of priorities.
    – Evan Lynch
    Jun 3, 2014 at 6:15
  • answer states there is no way to load the blockchain from disk, but it is well-known that you can move the blocks subfolder around to do this.
    – fuzzyTew
    Nov 6, 2021 at 10:42
14

A good start of downloading block chain is here


http://sourceforge.net/projects/bitcoin/files/Bitcoin/blockchain/

update 22.02.2021: URL is not more Working

3
  • 2
    This is the correct answer. "Bitcoin-Qt/bitcoind version 0.7.1 and later supports a special import feature: If the file "bootstrap.dat" is found in the bitcoin data directory, it will validate and import all blockchain data found in that file." The torrents are in the link indicated by Codler. Mar 24, 2013 at 2:54
  • 3
    Broken link....
    – user541686
    Jan 16, 2016 at 11:11
  • As of 2015-06-05, this project may now be found at github.com/bitcoin/bitcoin
    – remedcu
    Oct 19, 2017 at 16:33
9

"Bitcoin-Qt/bitcoind version 0.7.1 and later supports a special import feature: If the file "bootstrap.dat" is found in the bitcoin data directory, it will validate and import all blockchain data found in that file."

The official torrent can be found at: http://sourceforge.net/projects/bitcoin/files/Bitcoin/blockchain/

Magnetic link: magnet:?xt=urn:btih:6fe493ba606847eac163baf35aae9db319735482&dn=bootstrap.dat&tr=udp://tracker.openbittorrent.com:80&tr=udp://tracker.publicbt.com:80&tr=udp://tracker.ccc.de:80&tr=udp://tracker.istole.it:80

Thread: https://bitcointalk.org/index.php?topic=145386.0

1
  • This is the correct answer.
    – Felipe
    Mar 22, 2014 at 7:35
4

http://en.blockchaindownload.nl/ is a good way to download the full blockchains of bitcoin and litecoin. The site is new so i expect more improvements in the future. They offer free torrent downloads uploaded 24/7 by 3 servers so bandwith is pretty good and the last upload at the time of writing this was a nicely compressed rar file!

3
  • That's the only working link I found so far (July 2016). Please vote this answer up. Jun 29, 2016 at 9:43
  • yup. As long as funds are there, I will make sure it stays online! (Its my own site)
    – user28073
    Jun 29, 2016 at 9:45
  • 2
    The link is broken and the domain seem to be bought by cybersquatters
    – nponeccop
    Dec 2, 2020 at 11:47
3

Bootstrapping will be deprecated as of the 0.10 release in a few weeks. The torrent file mentioned in other answers will never be updated again because it is faster to have Bitcoin Core sync over the network.

So no need to download the Blockchain seperately anymore!

You can find the release notes here https://github.com/bitcoin/bitcoin/blob/0.10/doc/release-notes.md

2
  • 1
    True, but there will still be circumstances where it's useful, like when you have a slow connection, but the ability to load the bootstrap file through a usb drive.
    – Nick ODell
    Feb 9, 2015 at 18:07
  • Good point but then I would not run a full node and rather Electrum for example
    – greg121
    Feb 9, 2015 at 18:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.