From c70a6503d7acfabfab1c02749e4427b266955cb7 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Sun, 15 May 2022 22:58:59 -0400 Subject: [PATCH] tweaks to ExtendedCommitSig method --- types/block.go | 2 +- types/vote.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/types/block.go b/types/block.go index 49f883644..b99d8a12a 100644 --- a/types/block.go +++ b/types/block.go @@ -1017,7 +1017,7 @@ func (ec *ExtendedCommit) Clone() *ExtendedCommit { } // ToVoteSet constructs a VoteSet from the Commit and validator set. -// Panics if signatures from the commit can't be added to the voteset. +// Panics if signatures from the ExtendedCommit can't be added to the voteset. // Inverse of VoteSet.MakeExtendedCommit(). func (ec *ExtendedCommit) ToVoteSet(chainID string, vals *ValidatorSet, requireExtensions bool) *VoteSet { voteSet := NewVoteSet(chainID, ec.Height, ec.Round, tmproto.PrecommitType, vals, requireExtensions) diff --git a/types/vote.go b/types/vote.go index 0cd68a27a..9853f5f17 100644 --- a/types/vote.go +++ b/types/vote.go @@ -120,9 +120,8 @@ func (vote *Vote) ExtendedCommitSig() ExtendedCommitSig { return NewExtendedCommitSigAbsent() } - cs := vote.CommitSig() return ExtendedCommitSig{ - CommitSig: cs, + CommitSig: vote.CommitSig(), Extension: vote.Extension, ExtensionSignature: vote.ExtensionSignature, }