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

feat(starknet_batcher): validate height matches storage on decision reached #2750

Conversation

ArniStarkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

ArniStarkware commented Dec 18, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ArniStarkware ArniStarkware requested a review from alonh5 December 18, 2024 11:22
@ArniStarkware ArniStarkware marked this pull request as ready for review December 18, 2024 11:22
@ArniStarkware
Copy link
Contributor Author

crates/starknet_batcher/src/batcher.rs line 386 at r1 (raw file):

        // TODO(Arni): Get the height from the proposal output or from the proposal id. Pass it to
        // commit proposal and block. set the variable as non-optional.

delete this.

Code quote:

        // TODO(Arni): Get the height from the proposal output or from the proposal id. Pass it to
        // commit proposal and block. set the variable as non-optional.

Copy link
Contributor Author

@ArniStarkware ArniStarkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 4 files reviewed, 2 unresolved discussions (waiting on @alonh5)


crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs line 297 at r1 (raw file):

        // TODO(matan): Broadcast the decision to the network.

        let height = BlockNumber(height);

Suggestion:

        let height = BlockNumber(precommits[0].height);
        info!("Finished consensus for height: {height}. Agreed on block: {:#064x}", block.0);

        // TODO(matan): Broadcast the decision to the network.

@ArniStarkware ArniStarkware force-pushed the arni/batcher/decision_reached/validate_height_matches_storage branch from b294b35 to 41b5866 Compare December 18, 2024 11:32
Copy link
Contributor Author

@ArniStarkware ArniStarkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 4 files reviewed, all discussions resolved (waiting on @alonh5)


crates/starknet_batcher/src/batcher.rs line 386 at r1 (raw file):

Previously, ArniStarkware (Arnon Hod) wrote…

delete this.

Done.


crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs line 297 at r1 (raw file):

        // TODO(matan): Broadcast the decision to the network.

        let height = BlockNumber(height);

Done.

@ArniStarkware ArniStarkware force-pushed the arni/batcher/add_sync_state/validate_height_matches_storage branch from 825dff3 to ef4ff01 Compare December 18, 2024 11:35
@ArniStarkware ArniStarkware force-pushed the arni/batcher/decision_reached/validate_height_matches_storage branch from 41b5866 to ef88944 Compare December 18, 2024 11:35
@ArniStarkware
Copy link
Contributor Author

Can be closed for now. Now that we get the active height from self.

@ArniStarkware ArniStarkware deleted the arni/batcher/decision_reached/validate_height_matches_storage branch December 18, 2024 13:05
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.

2 participants