Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: zellfaze on April 05, 2011, 02:24:36 PM



Title: Movement of Block Database
Post by: zellfaze on April 05, 2011, 02:24:36 PM
If I were to move the files:
  • blkxxxx.dat
  • blkindex.dat

That would move the block database I believe.  Is this true?  Could I further use this ability to give new bitcoin users a copy of the block database so that they don't have to wait so long to download it from the other peers?

I haven't delved into the source code of bitcoin yet, and honestly, as I do not know C++ I'm not sure how much of it would make sense to me, but from the documentation I have read on the Wiki I think that this could work.

Sorry about he poor wording, I am tired today.


Title: Re: Movement of Block Database
Post by: Matt Corallo on April 05, 2011, 04:18:58 PM
Yes, the block database is included in blk*.  If you want an up-to-date copy, check the link in my sig :).


Title: Re: Movement of Block Database
Post by: theymos on April 05, 2011, 06:08:53 PM
It will work, but the recipient will not check the validity of blocks transferred in this way. This verification is one of the main reasons why the block chain "download" takes so long. The actual data transfer is fast.