Bitcoin Forum
September 26, 2016, 12:16:41 PM *
News: Latest stable version of Bitcoin Core: 0.13.0 (New!) [Torrent]. Make sure you verify it.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [PATCH] -initblocks: import local block data from static file  (Read 1179 times)
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1470


View Profile
November 29, 2010, 09:08:07 AM
 #1


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.

Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
1474892201
Hero Member
*
Offline Offline

Posts: 1474892201

View Profile Personal Message (Offline)

Ignore
1474892201
Reply with quote  #2

1474892201
Report to moderator
1474892201
Hero Member
*
Offline Offline

Posts: 1474892201

View Profile Personal Message (Offline)

Ignore
1474892201
Reply with quote  #2

1474892201
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1474892201
Hero Member
*
Offline Offline

Posts: 1474892201

View Profile Personal Message (Offline)

Ignore
1474892201
Reply with quote  #2

1474892201
Report to moderator
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1470


View Profile
November 29, 2010, 10:18:13 AM
 #2

Patch updated to fix minor bug.

Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
RHorning
Full Member
***
Offline Offline

Activity: 210


View Profile
November 29, 2010, 02:07:33 PM
 #3

Thank you for making this patch.  You've been trying to get this to work by providing the data and working with the people who are struggling with downloading data over the network.  It will be interesting to see how this works out in terms of building the index.

1FLK3uUT3Vup5JtkGJVXKHAoS3AZWPcKdv
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1470


View Profile
December 02, 2010, 05:51:06 AM
 #4

Patch updated for latest SVN.

Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1470


View Profile
February 24, 2011, 12:49:04 AM
 #5

Patch updated for latest git.  See top of thread for URL.

Note:  there remains an undiagnosed crashing problem, so this is not considered reliable or stable yet.

Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!