From a3ec142a84cb0246948b3b86bd512189492cce5b Mon Sep 17 00:00:00 2001 From: William Banfield Date: Sun, 15 May 2022 22:52:35 -0400 Subject: [PATCH] cosmetic fixup for ensure extensions --- types/block.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/types/block.go b/types/block.go index 682b36d28..49f883644 100644 --- a/types/block.go +++ b/types/block.go @@ -1061,12 +1061,8 @@ func (commit *Commit) ToVoteSet(chainID string, vals *ValidatorSet) *VoteSet { // EnsureExtensions validates that a vote extensions signature is present for // every ExtendedCommitSig in the ExtendedCommit. func (ec *ExtendedCommit) EnsureExtensions() error { - for idx, ecs := range ec.ExtendedSignatures { - if ecs.BlockIDFlag == BlockIDFlagAbsent { - continue - } - vote := ec.GetExtendedVote(int32(idx)) - if err := vote.EnsureExtension(); err != nil { + for _, ecs := range ec.ExtendedSignatures { + if err := ecs.EnsureExtension(); err != nil { return err } }