Bitcoin Forum
May 08, 2024, 09:48:35 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Files revNNNN.dat  (Read 1018 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?
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715204915
Hero Member
*
Offline Offline

Posts: 1715204915

View Profile Personal Message (Offline)

Ignore
1715204915
Reply with quote  #2

1715204915
Report to moderator
1715204915
Hero Member
*
Offline Offline

Posts: 1715204915

View Profile Personal Message (Offline)

Ignore
1715204915
Reply with quote  #2

1715204915
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6631


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: 529


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!