FromABCIEvidence function parameter rename (#7269)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user