FromABCIEvidence function parameter rename (#7269)

This commit is contained in:
Robert Zaremba
2020-09-09 09:32:58 +00:00
committed by GitHub
parent 5dc3f4c6c8
commit 1755bf3b46
+5 -5
View File
@@ -86,11 +86,11 @@ func (e Equivocation) GetTotalPower() int64 { return 0 }
// FromABCIEvidence converts a Tendermint concrete Evidence type to
// SDK Evidence using Equivocation as the concrete type.
func FromABCIEvidence(dupVote abci.Evidence) exported.Evidence {
func FromABCIEvidence(e abci.Evidence) exported.Evidence {
return &Equivocation{
Height: dupVote.Height,
Power: dupVote.Validator.Power,
ConsensusAddress: sdk.ConsAddress(dupVote.Validator.Address),
Time: dupVote.Time,
Height: e.Height,
Power: e.Validator.Power,
ConsensusAddress: sdk.ConsAddress(e.Validator.Address),
Time: e.Time,
}
}