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

Update view sync for 2 timeouts #2233

Merged
merged 3 commits into from
Dec 15, 2023
Merged

Update view sync for 2 timeouts #2233

merged 3 commits into from
Dec 15, 2023

Conversation

elliedavidson
Copy link
Member

@elliedavidson elliedavidson commented Dec 14, 2023

Closes #<ISSUE_NUMBER>

This PR:

  • Fixes a bug where view sync waited for 3 views to trigger instead of 2 views.

This PR does not:

Key places to review:

Comment on lines +748 to +751
error!(
"View sync protocol has received view sync evidence to update the view to {}",
*self.next_view
);
Copy link
Member

Choose a reason for hiding this comment

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

I think the logging at lines 475 and 484 should suffice?

Copy link
Member Author

Choose a reason for hiding this comment

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

My thought here was to log when view sync successfully updates the view, as well as when it starts. So we can see if view sync is updating the view or if the view is updated because a proposal was received.

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense!

shenkeyao
shenkeyao previously approved these changes Dec 14, 2023
Copy link
Member

@shenkeyao shenkeyao left a comment

Choose a reason for hiding this comment

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

LGTM, a nit comment about logging.

shenkeyao
shenkeyao previously approved these changes Dec 14, 2023
Copy link
Member

@shenkeyao shenkeyao left a comment

Choose a reason for hiding this comment

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

Looks good

bfish713
bfish713 previously approved these changes Dec 14, 2023
@elliedavidson elliedavidson merged commit 5bda483 into main Dec 15, 2023
8 of 9 checks passed
@elliedavidson elliedavidson deleted the ed/update-view-sync branch December 15, 2023 13:17
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