-
Notifications
You must be signed in to change notification settings - Fork 142
Decided message signers fix #431
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
Conversation
d671b51 to
327e01c
Compare
| zap.String("identifier", string(netMsg.SignedMessage.Message.Lambda))) | ||
| if err := runningInstance.CommitMsgValidationPipeline().Run(netMsg.SignedMessage); err != nil { | ||
| zap.Uint64s("signers", netMsg.SignedMessage.SignerIds)) | ||
| if err := instance.CommitMsgValidationPipelineV0(identifier, seq, i.ValidatorShare).Run(netMsg.SignedMessage); err != nil { |
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.
@amir-blox better use the fork and not the implementation directly
| } | ||
|
|
||
| // CommitMsgValidationPipelineV0 is version 0 of commit message validation | ||
| func CommitMsgValidationPipelineV0(identifier []byte, seq uint64, share *storage.Share) pipeline.Pipeline { |
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.
that seems redundant ..
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.
its a function so the late commit (in controller level) and exporter could use it as well
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.
we have the instance which has that function why create another?
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.
late commit is done on controller level when the instance finished and on exporter, in both cases we don't have an instance..
|
The ibft instance is not available in late commit scenarios:
Therefore in this PR, a static commit message validation function was added to overcome the missing instance object. |
Resolve #430
IBFT messages were purged once the instance decided or stopped, the behavior changed in this PR: