MCPcopy
hub / github.com/canopy-network/canopy / Check

Method Check

fsm/gov_params.go:94–108  ·  view source on GitHub ↗

Check() validates the Params object

()

Source from the content-addressed store, hash-verified

92
93// Check() validates the Params object
94func (x *Params) Check() lib.ErrorI {
95 if x == nil {
96 return ErrEmptyConsParams()
97 }
98 if err := x.Consensus.Check(); err != nil {
99 return err
100 }
101 if err := x.Fee.Check(); err != nil {
102 return err
103 }
104 if err := x.Validator.Check(); err != nil {
105 return err
106 }
107 return x.Governance.Check()
108}
109
110// consensus param space
111

Callers

nothing calls this directly

Calls 2

ErrEmptyConsParamsFunction · 0.85
CheckMethod · 0.65

Tested by

no test coverage detected