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_consensus_orchestrator): use a struct to collect arguments for validate_proposal #4301

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

guy-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@guy-starkware guy-starkware marked this pull request as ready for review February 20, 2025 09:21
Copy link
Contributor Author

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

Copy link
Contributor

@matan-starkware matan-starkware left a comment

Choose a reason for hiding this comment

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

Reviewed all commit messages.
Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions


crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs line 232 at r1 (raw file):

    block_info_validation: BlockInfoValidation,
    proposal_id: ProposalId,
    batcher: &'a dyn BatcherClient,

Avoid lifetimes in structs whenever feasible

Suggestion:

    batcher: Arc<dyn BatcherClient>,

crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs line 815 at r1 (raw file):

// TODO(Arni): Remove the clippy when switch to ProposalInit.
#[allow(clippy::too_many_arguments)]
async fn validate_proposal<'a>(mut args: ProposalValidateArguments<'a>) {

Suggestion:

async fn validate_proposal(mut args: ProposalValidateArguments<'a>) {

@guy-starkware guy-starkware force-pushed the guyn/proposals/validate_argument_struct branch from 32afe5b to 25315a9 Compare February 20, 2025 12:34
Copy link
Contributor Author

@guy-starkware guy-starkware 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 1 files reviewed, 2 unresolved discussions (waiting on @matan-starkware)


crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs line 232 at r1 (raw file):

Previously, matan-starkware wrote…

Avoid lifetimes in structs whenever feasible

Done.


crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs line 815 at r1 (raw file):

// TODO(Arni): Remove the clippy when switch to ProposalInit.
#[allow(clippy::too_many_arguments)]
async fn validate_proposal<'a>(mut args: ProposalValidateArguments<'a>) {

Done.

@matan-starkware matan-starkware self-requested a review February 20, 2025 13:06
Copy link
Contributor

@matan-starkware matan-starkware left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @guy-starkware)


crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs line 815 at r1 (raw file):

Previously, guy-starkware wrote…

Done.

should also be able to remove the clippy

Copy link
Contributor Author

@guy-starkware guy-starkware 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: all files reviewed, 1 unresolved discussion (waiting on @matan-starkware)


crates/starknet_consensus_orchestrator/src/sequencer_consensus_context.rs line 815 at r1 (raw file):

Previously, matan-starkware wrote…

should also be able to remove the clippy

Ah, yes, I was going to do that. Thanks!

@guy-starkware guy-starkware force-pushed the guyn/proposals/validate_argument_struct branch from 25315a9 to c4cdda5 Compare February 20, 2025 13:14
@matan-starkware matan-starkware self-requested a review February 20, 2025 18:12
Copy link
Contributor

@matan-starkware matan-starkware left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @guy-starkware)

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