Author

Topic: Getting rid of unneeded blkxxxxx.dat or revxxxxx.dat in core after re-indexing (Read 731 times)

sr. member
Activity: 442
Merit: 250
Found Lost beach - quiet now
legendary
Activity: 4228
Merit: 1313
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
sr. member
Activity: 442
Merit: 250
Found Lost beach - quiet now
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.
staff
Activity: 3458
Merit: 6793
Just writing some code
You are supposed to have those. Those are the raw blocks. If you delete them then Bitcoin Core won't work.
sr. member
Activity: 442
Merit: 250
Found Lost beach - quiet now
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?
Jump to: