Skip to content

Conversation

@leandernikolaus
Copy link
Contributor

I wanted to study the semantics of the synchronizer, and I found that the leafBlock is always the block from the highQC.
Therefore, in the current implementation, we could omit the leafBlock.

}

if newBlock.View() > oldBlock.View() {
if newBlock.View() > s.highQC.View() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe this change should be done, even when not removing leafBlock.

@meling meling requested a review from johningve September 23, 2022 11:17
@meling
Copy link
Member

meling commented Sep 23, 2022

I've looked at the code, and it looks fine to me. But could edit the PR description to provide some more context for this. Do you think we won't need the LeafBlock() for alternative synchronizer implementations?

@meling meling changed the title removing leafBlock from syncronyzer Removed leafBlock from synchronizer Sep 23, 2022
@meling meling requested review from hanish520 and meling October 3, 2022 09:06
Copy link
Member

@meling meling left a comment

Choose a reason for hiding this comment

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

LGTM!

@meling
Copy link
Member

meling commented Feb 11, 2023

I don't see any issues with this PR.

@hanish520 Would this conflict with any of your other changes?

@johningve If you have a cycle to spare, please let us know your take.

I want to merge this if there are no concerns with this.

@meling meling merged commit 03a88d9 into master Feb 13, 2023
@meling meling deleted the cleanview branch February 13, 2023 16:41
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