Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Frodek on January 21, 2017, 01:14:55 PM



Title: Files revNNNN.dat
Post by: Frodek on January 21, 2017, 01:14:55 PM
I am read and analyze blkNNNNN.dat files but the are old:
Bitcoin-qt is downloading blocks...
blk00746.dat above half hours ago
and new files:
rev00743.dat
rev00746.dat
rev00744.dat
rev00745.dat
revNNNNN have the same format as  blkNNNNN? I wanna read up to latest coming block.

In rev can be forks and in blk not?


Title: Re: Files revNNNN.dat
Post by: achow101 on January 21, 2017, 05:46:06 PM
The blk.dat files contain the blocks as they are received over the wire and written to the disk. The rev.dat files contain undo data. From what I understand, that means that it is a place for Bitcoin Core to write down which blocks should be ignored in the blockchain because those blocks are stale. The place to find the latest incoming blocks would be the blk.dat files, however you should not be reading from those files directly, but rather using the various RPCs and notifiers supplied by Bitcoin Core.


Title: Re: Files revNNNN.dat
Post by: elbandi on April 24, 2017, 08:50:34 PM
how can i purge this rev data for old blocks?

i think bitcoin will not undo 2014,2015,2016 year's blocks, so old rev files are unnecessary.

i can save disk space about 10-12GB.


Title: Re: Files revNNNN.dat
Post by: Casy on April 26, 2017, 03:23:23 PM
Don't know about the rev files, but the downloaded blockchain size can be reduced using the "-prune" option of the client.