Skip to content

What has changed in block structure ? #20

Answered by sczembor
sczembor asked this question in Q&A
Discussion options

You must be logged in to vote

Block structure:

The block structure will change with the condor release, however the historical blocks will still keep the old structure so it is important for all the parsers to support both the formats.

Pre-Condor (1.5.6):

block
├── hash
├── header
│   ├── parent_hash
│   ├── state_root_hash
│   ├── body_hash
│   ├── random_bit
│   ├── accumulated_seed
│   ├── era_end 
│   ├── timestamp
│   ├── era_id
│   ├── height
│   └── protocol_version
├── body
└── proofs

Post-Condor (2.0.0):

block_with_signatures
├── block (Version2)
│   ├── hash
│   ├── header
│   │    ├── parent_hash
│   │    ├── state_root_hash
│   │    ├── body_hash
│   │    ├── random_bit
│   │    ├── accumulated_seed
│   │…

Replies: 2 comments

Comment options

sczembor
Jun 26, 2024
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by melpadden
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
json-rpc Issues with the json-rpc C2 Medium Complexity P2 Medium Priority
2 participants