tweaks to ExtendedCommitSig method

This commit is contained in:
William Banfield
2022-05-15 22:58:59 -04:00
parent a3ec142a84
commit c70a6503d7
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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)
+1 -2
View File
@@ -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,
}