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

IBFT: Ensure that Committed Seal is not zero value #1118

Merged
merged 14 commits into from
Sep 30, 2021
2 changes: 1 addition & 1 deletion consensus/istanbul/ibft/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ func (c *core) finalizeMessage(msg *ibfttypes.Message) ([]byte, error) {
msg.Address = c.Address()

// Add proof of consensus
ricardolyn marked this conversation as resolved.
Show resolved Hide resolved
msg.CommittedSeal = []byte{}
// Assign the CommittedSeal if it's a COMMIT message and proposal is not nil
if msg.Code == ibfttypes.MsgCommit && c.current.Proposal() != nil {
msg.CommittedSeal = []byte{}
ricardolyn marked this conversation as resolved.
Show resolved Hide resolved
seal := PrepareCommittedSeal(c.current.Proposal().Hash())
msg.CommittedSeal, err = c.backend.Sign(seal)
if err != nil {
Expand Down