Bitcoin Forum
May 28, 2024, 03:15:41 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: "checkpoints" file structure  (Read 2128 times)
Green Lantern (OP)
Newbie
*
Offline Offline

Activity: 322
Merit: 0


View Profile
September 27, 2013, 10:22:36 PM
 #1

What is "checkpoints" file structure http://i59.fastpic.ru/big/2013/0928/f0/6c9c27c2adbb2a178be2cc294aed35f0.jpg ? I mean what kind of data should be put here? Do any docs about exist?
Andreas Schildbach
Moderator
Hero Member
*
Offline Offline

Activity: 483
Merit: 501


View Profile
September 27, 2013, 11:38:35 PM
 #2

It is best described by the class CheckpointManager in bitcoinj. Have a look at the constructor for how the file format is read.
Green Lantern (OP)
Newbie
*
Offline Offline

Activity: 322
Merit: 0


View Profile
September 29, 2013, 09:51:59 PM
Last edit: September 30, 2013, 04:02:28 PM by Green Lantern
 #3

It is best described by the class CheckpointManager in bitcoinj. Have a look at the constructor for how the file format is read.

Thanks. I have seen it. And I have a question.
Checkpoint size is 96 (Block.HEADER_SIZE + CHAIN_WORK_BYTES + 4 = 80 + 12 +4). So checkpoint is data of block (header) + chainwork bytes + length.
What data for example is in header?
Which exactly kind of blocks should I chooce for adding as headers? What is chainwork bytes and length?
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!