Skip to content

Commit

Permalink
Document ValidatorByConsAddr in consumer module (#675)
Browse files Browse the repository at this point in the history
* Document ValidatorByConsAddr

* Bumps comment

Co-authored-by: Daniel <[email protected]>
Co-authored-by: Shawn <[email protected]>
Co-authored-by: Simon Noetzlin <[email protected]>
  • Loading branch information
4 people authored Jan 25, 2023
1 parent 1e2cd5c commit a558c69
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions x/ccv/consumer/keeper/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ func (k Keeper) IsValidatorJailed(ctx sdk.Context, addr sdk.ConsAddress) bool {

// ValidatorByConsAddr returns an empty validator
func (k Keeper) ValidatorByConsAddr(sdk.Context, sdk.ConsAddress) stakingtypes.ValidatorI {
/*
NOTE:
The evidence module will call this function when it handles equivocation evidence.
The returned value must not be nil and must not have an UNBONDED validator status,
or evidence will reject it.
Also, the slashing module will cal lthis function when it observes downtime. In that case
the only requirement on the returned value is that it isn't null.
*/
return stakingtypes.Validator{}
}

Expand Down

0 comments on commit a558c69

Please sign in to comment.