Bitcoin Forum
May 24, 2024, 06:07:33 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: BitCoin-QT upgraded from < 0.8 to 0.8.1 Data Directory Q  (Read 533 times)
Kaega (OP)
Full Member
***
Offline Offline

Activity: 158
Merit: 100


View Profile
March 25, 2013, 11:10:29 PM
 #1

According to https://en.bitcoin.it/wiki/Data_directory the blk*dat files in same directory as the wallet.dat are only for pre-0.8.0 and subsequent versions use the "blocks/" subdirectory.

Now that I'm at 0.8.1, why did the client leave both sets?

Is it safe to remove the ones in the base level (at same level as wallet.dat)?  The dat files are something around ~6GB and now I have essentially two copies.


Protect your coin: Buy a Treznor
bitcoiner1
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
March 25, 2013, 11:15:35 PM
 #2

Maybe the developers had a vision that with 0.8 a fork would happen and everyone had to switch back to 0.7 until 0.8.1 came out Smiley

If they would have deleted the files already, switching back would be more difficult. Maybe they delete them automatically with 0.9 or so.
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1032



View Profile WWW
March 26, 2013, 05:40:36 AM
 #3

You can remove blk0001.dat, blk0002.dat, blk0003.dat and blkindex.dat from the 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.
Kaega (OP)
Full Member
***
Offline Offline

Activity: 158
Merit: 100


View Profile
March 26, 2013, 05:47:26 AM
 #4

Thanks deepceleron.


Protect your coin: Buy a Treznor
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!