This commit is contained in:
mossid 2018-09-18 18:57:24 +09:00
parent 39b5b388f1
commit 73b34353bf
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ type ReadOnlySpace = space.ReadOnlySpace
type ParamStruct = space.ParamStruct
type KeyFieldPairs = space.KeyFieldPairs
// nolint - reexport
func UnmarshalParamsFromMap(m map[string][]byte, cdc *codec.Codec, ps space.ParamStruct) error {
return space.UnmarshalParamsFromMap(m, cdc, ps)
}

View File

@ -34,6 +34,7 @@ type Params struct {
SlashFractionDowntime sdk.Dec `json:"slash-fraction-downtime"`
}
// Implements params.ParamStruct
func (p *Params) KeyFieldPairs() params.KeyFieldPairs {
return params.KeyFieldPairs{
{KeyMaxEvidenceAge, &p.MaxEvidenceAge},