Bitcoin Institute

[PATCH] -initblocks: import local block data from static file

1 messages BitcoinTalk Jeff Garzik November 29, 2010 — November 29, 2010

URL: http://yyz.us/bitcoin/patch.bitcoin-initblocks

This patch adds “-initblocks=FILE” parameter to bitcoin, where FILE is the path to a blk0001.dat file downloaded off the Internet somewhere.

With -initblocks, bitcoin will import, verify, index and store each block in this file, thus making it acceptable to obtain from untrusted sources.

The import stops upon any error, preventing re-loads of the same data.

If nothing else, this patch permits the benchmarking and comparison between local disk import and P2P network download.