Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow blocks with zero transactions #425

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

ftheirs
Copy link
Collaborator

@ftheirs ftheirs commented Nov 6, 2024

If the class tree from the chain is not initialized yet (class_commitment = Felt::Zero), Pathfinder will deliver that field with a None. This situation was handled.
Besides, the previous and current root hash from the class tree was taken from the storage proofs since they will be present always. Previous approach relied on class proof but in order to get them, it was necessary to have transactions in both blocks. Therefore, this PR allows SNOS to process blocks with zero transactions.

Replacing: #418

Issue Number: N/A

Type

  • feature
  • bugfix
  • dev (no functional changes, no API changes)
  • fmt (formatting, renaming)
  • build
  • docs
  • testing

Description

Breaking changes?

  • yes
  • no

@ftheirs ftheirs marked this pull request as ready for review November 6, 2024 12:59
Copy link
Collaborator

@HermanObst HermanObst left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@GMKrieger GMKrieger left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@whichqua whichqua left a comment

Choose a reason for hiding this comment

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

LGTM

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.

5 participants