<p>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.</p>

<p>A Python script used to create the file can be found <a href="https://github.com/jgarzik/pynode/blob/master/mkbootstrap.py" rel="nofollow"><strong>here</strong></a>.  You will need an up-to-date pynode chain database.</p>

<p>If you have the Armory code, you can compile this <a href="https://gist.github.com/dooglus/5002764" rel="nofollow"><strong>C++ program</strong></a>.  This uses the blockchain data blocks created by the official bitcoin client.</p>

CC BY-SA 3.0
2013-12-12T11:53:33.063Z
2013-12-12T11:53:33.063Z
ScripterRon
<p>I think it's just a renamed <code>blk0001.dat</code> file, but I can't find any references as to what it actually is other than a "binary blockchain" ....</p>

CC BY-SA 3.0
2014-03-16T22:36:32.413Z
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
CC BY-SA 3.0
2015-05-12T08:08:10.053Z
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?](http://bitcoin.stackexchange.com/help/duplicates)
Murch
<bootstrap.dat>
How do you generate a bootstrap.dat file?
Indolering
# How do you generate a bootstrap.dat file?

(Asked by: username_0 on 2013-12-12)

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" ....

**Tags:** bootstrap.dat

> **Comments:**
> **username_0**: 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?  
> **username_1**: 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?](http://bitcoin.stackexchange.com/help/duplicates)  

---

## 1 answers

### Answer by username_2 on 2013-12-12. Score: 4 | Accepted answer

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**](https://github.com/jgarzik/pynode/blob/master/mkbootstrap.py). You will need an up-to-date pynode chain database.

If you have the Armory code, you can compile this [**C++ program**](https://gist.github.com/dooglus/5002764). This uses the blockchain data blocks created by the official bitcoin client.


---

