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

chore(consensus): add height and round parameters to ConsensusConfig #3928

Merged

Conversation

guy-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

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.

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @asmaastarkware and @guy-starkware)


crates/starknet_consensus/src/config.rs line 36 at r1 (raw file):

    pub future_height_limit: u32,
    /// How many rounds in the future should we cache.
    pub future_round_limit: u32,

future_round_limit - should be for the current round.

I think we should also add future_height_round_limit, and default to 1.

Code quote:

    /// How many heights in the future should we cache.
    pub future_height_limit: u32,
    /// How many rounds in the future should we cache.
    pub future_round_limit: u32,

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.

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @asmaastarkware and @guy-starkware)


crates/starknet_consensus/src/config.rs line 36 at r1 (raw file):

Previously, matan-starkware wrote…

future_round_limit - should be for the current round.

I think we should also add future_height_round_limit, and default to 1.

future_height_round_limit = the number of rounds to cache to for future heights

@guy-starkware guy-starkware force-pushed the guyn/config/remove_stuff_from_consensus_config branch from 445a40e to edf2e86 Compare February 4, 2025 08:41
@guy-starkware guy-starkware force-pushed the guyn/config/add_height_params_to_consensus_config branch from 3c5e48c to 53a727f Compare February 4, 2025 08:42
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 4 files reviewed, 1 unresolved discussion (waiting on @asmaastarkware and @matan-starkware)


crates/starknet_consensus/src/config.rs line 36 at r1 (raw file):

Previously, matan-starkware wrote…

future_height_round_limit = the number of rounds to cache to for future heights

Done.

@matan-starkware matan-starkware self-requested a review February 4, 2025 09:02
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 4 of 4 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @asmaastarkware)

Copy link
Contributor

@asmaastarkware asmaastarkware 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @guy-starkware)

@guy-starkware guy-starkware changed the base branch from guyn/config/remove_stuff_from_consensus_config to main February 4, 2025 12:19
Copy link

graphite-app bot commented Feb 4, 2025

Merge activity

  • Feb 4, 7:29 AM EST: Graphite disabled "merge when ready" on this PR due to: We hit a GitHub rate limit while trying to merge. If you are attempting to merge a large stack, breaking it up into smaller chunks may help..

@guy-starkware guy-starkware force-pushed the guyn/config/add_height_params_to_consensus_config branch from 53a727f to b38e144 Compare February 4, 2025 12:50
@matan-starkware matan-starkware self-requested a review February 4, 2025 17:38
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 3 of 3 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @guy-starkware)

@guy-starkware guy-starkware added this pull request to the merge queue Feb 4, 2025
Merged via the queue into main with commit 596bc53 Feb 4, 2025
16 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants