Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: brubits on May 01, 2013, 01:43:30 PM



Title: Old blk0001.dat, 2, 3 left over from v0.7.?
Post by: brubits on May 01, 2013, 01:43:30 PM
In the data path, I have files blk0001.dat 2 & 3 and blkindex.dat
all with date/time stamps of before I upgraded to v0.8.1
and it's data looks like it's all in a sub folder \blocks\  all have date/times of after I upgraded.

They're taking up 6gb of HD space, so if they're not needed for v0.8, it shouldn't matter if they're deleted?


Title: Re: Old blk0001.dat, 2, 3 left over from v0.7.?
Post by: deepceleron on May 01, 2013, 02:02:53 PM
You can remove blk0001.dat, blk0002.dat, blk0003.dat and blkindex.dat from the root data directory after a reindex is complete and you are caught up with the blockchain (and you don't plan on going back to an older version). Only blkindex should actually be using disk space, as the old BLK000x data are moved upon upgrade, and the blk000x.dat files you see there are hardlinks (shortcuts) on any filesystem that supports hardlinking.
The new database for v0.8.0+ is stored in two subdirectories, "blocks" (block data, with block id database in "blocks/index"), and "chainstate" (unspent output database). Do not mess with files in these subdirectories.