Skip to content

Conversation

@leo-starkware
Copy link
Contributor

Changes

Remove parent hash and add block number to pre_confirmed_block_header. The parent hash is removed because a pre-confirmed block may be produced while the thread computing the previous height's commitments hasn't concluded.

Checklist:

  • Validated the specification files - npm run validate_all
  • Applied formatting - npm run format
  • Performed code self-review
  • If making a new release, checked out the guidelines

@leo-starkware leo-starkware requested a review from amanusk June 16, 2025 09:32
@leo-starkware leo-starkware changed the base branch from master to release/v0.9.0-rc.1 June 16, 2025 09:40
]
},
"PRE_CONFIRMED_BLOCK_HEADER": {
"title": "Pending block header",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be updated to pre-confirmed block header in the title?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in #309

"title": "Pending block header",
"type": "object",
"properties": {
"parent_hash": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not keep he parent hash as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The feeder-provided pre-confirmed block may be published before there are commitment hashes for the previous block, so cannot contain parent hash. One can say that nodes always fetch the pre-confirmed of latest height they know about + 1, so in particular they would also know the parent hash, but would need more logic in the node

@leo-starkware leo-starkware merged commit de2e320 into release/v0.9.0-rc.1 Jun 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants