-
Notifications
You must be signed in to change notification settings - Fork 215
cleanup consensus v2 subround end round #6540
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
cleanup consensus v2 subround end round #6540
Conversation
| sentSignatureTracker: sentSignatureTracker, | ||
| worker: worker, | ||
| signatureThrottler: signatureThrottler, | ||
| blockCommitted: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is never set to true.. is it needed?
|
|
||
| messageSender := string(cnsDta.PubKey) | ||
|
|
||
| if sr.IsJobDone(sr.SelfPubKey(), sr.Current()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if sr.IsJobDone(sr.SelfPubKey(), sr.Current()) { | |
| if sr.IsSelfJobDone(sr.Current()) { |
this one also covers multikey mode
| // TODO[cleanup cns finality]: remove the leader check | ||
| isEquivalentMessagesFlagEnabled := sr.EnableEpochsHandler().IsFlagEnabledInEpoch(common.EquivalentMessagesFlag, sr.GetHeader().GetEpoch()) | ||
| if !sr.IsSelfLeader() && !isEquivalentMessagesFlagEnabled { | ||
| if !sr.IsSelfLeader() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't thinks this would be ok, as the invalid signers should be broadcast by the one who also sent the proof, not by the leader
| } | ||
| } | ||
|
|
||
| func (sposWorkerMock *SposWorkerMock) AddReceivedProofHandler(handler func(proofHandler consensus.ProofHandler)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing comment
Reasoning behind the pull request
Proposed changes
Testing procedure
Pre-requisites
Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:
featbranch created?featbranch merging, do all satellite projects have a proper tag insidego.mod?