fix lint
This commit is contained in:
parent
39b5b388f1
commit
73b34353bf
|
@ -11,6 +11,7 @@ type ReadOnlySpace = space.ReadOnlySpace
|
||||||
type ParamStruct = space.ParamStruct
|
type ParamStruct = space.ParamStruct
|
||||||
type KeyFieldPairs = space.KeyFieldPairs
|
type KeyFieldPairs = space.KeyFieldPairs
|
||||||
|
|
||||||
|
// nolint - reexport
|
||||||
func UnmarshalParamsFromMap(m map[string][]byte, cdc *codec.Codec, ps space.ParamStruct) error {
|
func UnmarshalParamsFromMap(m map[string][]byte, cdc *codec.Codec, ps space.ParamStruct) error {
|
||||||
return space.UnmarshalParamsFromMap(m, cdc, ps)
|
return space.UnmarshalParamsFromMap(m, cdc, ps)
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,7 @@ type Params struct {
|
||||||
SlashFractionDowntime sdk.Dec `json:"slash-fraction-downtime"`
|
SlashFractionDowntime sdk.Dec `json:"slash-fraction-downtime"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Implements params.ParamStruct
|
||||||
func (p *Params) KeyFieldPairs() params.KeyFieldPairs {
|
func (p *Params) KeyFieldPairs() params.KeyFieldPairs {
|
||||||
return params.KeyFieldPairs{
|
return params.KeyFieldPairs{
|
||||||
{KeyMaxEvidenceAge, &p.MaxEvidenceAge},
|
{KeyMaxEvidenceAge, &p.MaxEvidenceAge},
|
||||||
|
|
Loading…
Reference in New Issue