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

Split out startNewSequence from core.startNewRound #1470

Merged
merged 6 commits into from
Apr 7, 2021

Conversation

trianglesphere
Copy link
Contributor

Description

This creates a function called core.startNewSequence that is used in place of core.startNewRound(common.Big0). This helps clean up the code and simplifies the logic of starting new rounds and sequences.

Tested

Unit tests

@trianglesphere trianglesphere requested a review from a team as a code owner March 29, 2021 20:35
@trianglesphere trianglesphere requested review from mcortesi and gastonponti and removed request for a team March 29, 2021 20:35
Copy link
Contributor

@oneeman oneeman left a comment

Choose a reason for hiding this comment

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

Wrote down a comment regarding how the proposer is set during round changes, and suggested a tweak to a comment. Otherwise looks good.

Joshua Gutow and others added 3 commits March 31, 2021 16:17
Copy link
Contributor

@oneeman oneeman left a comment

Choose a reason for hiding this comment

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

LGTM!

@trianglesphere trianglesphere merged commit 91f903c into master Apr 7, 2021
@trianglesphere trianglesphere deleted the trianglesphere/new_sequence branch April 7, 2021 15:58
trianglesphere pushed a commit that referenced this pull request Apr 8, 2021
* Split new round and new sequence into two functions

* More cleanup

* Update consensus/istanbul/core/core.go

Co-authored-by: Or Neeman <or@clabs.co>

* Use correct author in startNewRound

* Clean up next proposer logic and logs

Co-authored-by: Or Neeman <or@clabs.co>
trianglesphere pushed a commit that referenced this pull request Apr 9, 2021
* Split new round and new sequence into two functions

* More cleanup

* Update consensus/istanbul/core/core.go

* Use correct author in startNewRound

* Clean up next proposer logic and logs

Co-authored-by: Or Neeman <or@clabs.co>
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.

None yet

2 participants