Bitcoin Forum
November 07, 2024, 03:27:55 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Files revNNNN.dat  (Read 1019 times)
Frodek (OP)
Member
**
Offline Offline

Activity: 138
Merit: 25


View Profile
January 21, 2017, 01:14:55 PM
 #1

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?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
January 21, 2017, 05:46:06 PM
 #2

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.

elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 531


View Profile
April 24, 2017, 08:50:34 PM
 #3

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.
Casy
Member
**
Offline Offline

Activity: 149
Merit: 22

🔴🔵 FoxMixer.com 🔵🔴


View Profile WWW
April 26, 2017, 03:23:23 PM
 #4

Don't know about the rev files, but the downloaded blockchain size can be reduced using the "-prune" option of the client.

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!