bitcoin-stats icon indicating copy to clipboard operation
bitcoin-stats copied to clipboard

"dump" file format

Open qdotme opened this issue 11 years ago • 5 comments

Hi!

Thanks for opensourcing this code. I'm trying to wrap my head around it - and looking at update.sh, there ought to be a tool producing the file "dump" - what is it?

Cheers, Tomasz

qdotme avatar Jun 19 '14 08:06 qdotme

The bitcoin-seeder program, which is the most important part of this repository, produces it.

It's an integrated Bitcoin network crawler + uptime statistics database + DNS seeder. Every few minutes it produces this dump file for human consumption.

sipa avatar Jun 19 '14 12:06 sipa

Sorry, on mobile here. I'm confusing things with another repository.

sipa avatar Jun 19 '14 12:06 sipa

Thanks for such a quick response - but I think bitcoin-seeder takes care of the DNS seeds, and "dump" ought to contain timestamps from the blocks from the heaviest chain, right?

qdotme avatar Jun 19 '14 13:06 qdotme

The dump file contains these fields:

  • block height
  • (start,end) time (in the current implementation both are just equal to the block timestamp)
  • difficulty
  • weight (in the current implementation that's always 1)
  • number of transactions
  • block version

sipa avatar Apr 17 '16 23:04 sipa