Update internal/consensus/common_test.go

Co-authored-by: Sergio Mena <sergio@informal.systems>
This commit is contained in:
Thane Thomson
2022-03-25 10:36:45 -04:00
committed by GitHub
parent 9951b7ad81
commit 806e348af8

View File

@@ -134,7 +134,7 @@ func (vs *validatorStub) signVote(
return nil, fmt.Errorf("sign vote failed: %w", err)
}
// ref: signVote in FilePV, the vote should use the privious vote info when the sign data is the same.
// ref: signVote in FilePV, the vote should use the previous vote info when the sign data is the same.
if signDataIsEqual(vs.lastVote, v) {
v.Signature = vs.lastVote.Signature
v.Timestamp = vs.lastVote.Timestamp