How do you generate a bootstrap.dat file?

2

I think it's just a renamed blk0001.dat file, but I can't find any references as to what it actually is other than a "binary blockchain" ....

Indolering

Posted 2013-12-12T02:54:40.387

Reputation: 337

Question was closed 2014-03-16T18:32:02.203

As this has been marked as a duplicate, should I delete it or is there another way I can confirm that it is a duplicate?Indolering 2014-03-16T22:36:32.413

The question is prominently marked as a duplicate and it has a valid answer, so it is fine to keep it. Some people might chose different terms to search for the same thing, so it is good to have several different question headers to point to the question. Also see: Why are some questions marked as duplicate?

Murch 2015-05-12T08:08:10.053

Answers

4

The bootstrap.dat file contains a serialized copy of the blockchain, usually up to the latest checkpoint released for the official client. The official bitcoin client will read this file when starting to create the blockchain without downloading it from the peer nodes. The file will then be renamed to bootstrap.dat.old so it won't be reprocessed when the client is restarted.

A Python script used to create the file can be found here. You will need an up-to-date pynode chain database.

If you have the Armory code, you can compile this C++ program. This uses the blockchain data blocks created by the official bitcoin client.

ScripterRon

Posted 2013-12-12T02:54:40.387

Reputation: 2 023