From e79b471fae97a7af8b8b9c182bdc902196ab7350 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Fri, 13 May 2022 17:34:58 -0400 Subject: [PATCH] lint fix --- types/block.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/block.go b/types/block.go index cf3e047ca..682b36d28 100644 --- a/types/block.go +++ b/types/block.go @@ -1040,13 +1040,13 @@ func (ec *ExtendedCommit) ToVoteSet(chainID string, vals *ValidatorSet, requireE // ToVoteSet constructs a VoteSet from the Commit and validator set. // Panics if signatures from the commit can't be added to the voteset. // Inverse of VoteSet.MakeCommit(). -func (c *Commit) ToVoteSet(chainID string, vals *ValidatorSet) *VoteSet { - voteSet := NewVoteSet(chainID, c.Height, c.Round, tmproto.PrecommitType, vals, false) - for idx, cs := range c.Signatures { +func (commit *Commit) ToVoteSet(chainID string, vals *ValidatorSet) *VoteSet { + voteSet := NewVoteSet(chainID, commit.Height, commit.Round, tmproto.PrecommitType, vals, false) + for idx, cs := range commit.Signatures { if cs.BlockIDFlag == BlockIDFlagAbsent { continue // OK, some precommits can be missing. } - vote := c.GetVote(int32(idx)) + vote := commit.GetVote(int32(idx)) if err := vote.ValidateBasic(); err != nil { panic(fmt.Errorf("failed to validate vote reconstructed from commit: %w", err)) }