Bitcoin Forum
November 05, 2024, 01:25:19 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Getting rid of unneeded blkxxxxx.dat or revxxxxx.dat in core after re-indexing  (Read 729 times)
Moria843 (OP)
Sr. Member
****
Offline Offline

Activity: 442
Merit: 250


Found Lost beach - quiet now


View Profile
December 31, 2015, 08:49:58 PM
 #1

After power loss and having bitcoin core re-index blocks on drive for about 15 hours, I now have a rev00000.dat ... rev00409.dat for each blk00000.dat ... blk00409.dat file.

Any easy way to have bitcoin core get rid of unneeded files or to manually do without messing things up?

Hot time, summer in the city, back of my mine getting hot & gritty!!!
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3542
Merit: 6885


Just writing some code


View Profile WWW
December 31, 2015, 08:53:29 PM
 #2

You are supposed to have those. Those are the raw blocks. If you delete them then Bitcoin Core won't work.

Moria843 (OP)
Sr. Member
****
Offline Offline

Activity: 442
Merit: 250


Found Lost beach - quiet now


View Profile
December 31, 2015, 09:24:52 PM
 #3

Been running 0.11.1 since it was released for a while and only ever had blkxxxxx.dat in the "blocks" folder. Never had any revxxxxx.dat files until forced to re-index.

Hot time, summer in the city, back of my mine getting hot & gritty!!!
cr1776
Legendary
*
Offline Offline

Activity: 4214
Merit: 1312


View Profile
December 31, 2015, 09:29:10 PM
 #4

Been running 0.11.1 since it was released for a while and only ever had blkxxxxx.dat in the "blocks" folder. Never had any revxxxxx.dat files until forced to re-index.

Some references:

http://bitcoin.stackexchange.com/questions/11104/what-is-the-database-for
Quote
blocks/rev*.dat: these contain "undo" data. You can see blocks as 'patches' to the chain state (they consume some unspent outputs, and produce new ones), and see the undo data as reverse patches. They are necessary for rolling back the chainstate, which is necessary in case of reorganisations.


https://en.bitcoin.it/wiki/Data_directory
Quote
locks subdirectory
[v0.8 and above] Contains "undo" data.

rev*.dat
You can see blocks as 'patches' to the chain state (they consume some unspent outputs, and produce new ones), and see the undo data as reverse patches. They are necessary for rolling back the chainstate, which is necessary in case of reorganizations.

https://bitcoin.org/en/release/v0.11.0
Moria843 (OP)
Sr. Member
****
Offline Offline

Activity: 442
Merit: 250


Found Lost beach - quiet now


View Profile
December 31, 2015, 10:54:49 PM
 #5

Thanks all!

Hot time, summer in the city, back of my mine getting hot & gritty!!!
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!