Skip to content

Commit

Permalink
Move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinod Damle committed Sep 30, 2021
1 parent a599bdd commit 176fa88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/istanbul/ibft/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ func (c *core) finalizeMessage(msg *ibfttypes.Message) ([]byte, error) {
// Add sender address
msg.Address = c.Address()

// Add proof of consensus
// 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{}
seal := PrepareCommittedSeal(c.current.Proposal().Hash())
// Add proof of consensus
msg.CommittedSeal, err = c.backend.Sign(seal)
if err != nil {
return nil, err
Expand Down

0 comments on commit 176fa88

Please sign in to comment.