mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-08 04:50:16 +00:00
Explicitly ensure length > 0 to sign vote extension
Signed-off-by: Thane Thomson <connect@thanethomson.com>
This commit is contained in:
@@ -404,7 +404,7 @@ func (pv *FilePV) signVote(chainID string, vote *tmproto.Vote) error {
|
||||
vote.Signature = sig
|
||||
|
||||
// Sign the vote extension, if any
|
||||
if vote.Extension != nil {
|
||||
if len(vote.Extension) > 0 {
|
||||
vote.ExtensionSignature, err = pv.Key.PrivKey.Sign(vote.Extension)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user