From 449e127e6c64f73b0814efd71c47b5a9de3352bd Mon Sep 17 00:00:00 2001 From: "kmax.eth" <92766553+maxkaneco@users.noreply.github.com> Date: Fri, 21 Jan 2022 04:06:13 +0800 Subject: [PATCH] privval: avoid re-signing vote when RHS and signbytes are equal (#7592) * avoid re-signing vote when RHS and signbytes are equal * avoid re-signing proposal when RHS and signbytes are equal Co-authored-by: Callum Waters Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com> --- privval/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/privval/file.go b/privval/file.go index 36eec7a1c..d5c959b9b 100644 --- a/privval/file.go +++ b/privval/file.go @@ -371,8 +371,8 @@ func (pv *FilePV) signVote(chainID string, vote *tmproto.Vote) error { vote.Timestamp = timestamp vote.Signature = lss.Signature - return nil } + return nil } // It passed the checks. Sign the vote