MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / IsValidPubkeyType

Function IsValidPubkeyType

types/params.go:66–73  ·  view source on GitHub ↗
(params tmproto.ValidatorParams, pubkeyType string)

Source from the content-addressed store, hash-verified

64}
65
66func IsValidPubkeyType(params tmproto.ValidatorParams, pubkeyType string) bool {
67 for i := 0; i < len(params.PubKeyTypes); i++ {
68 if params.PubKeyTypes[i] == pubkeyType {
69 return true
70 }
71 }
72 return false
73}
74
75// Validate validates the ConsensusParams to ensure all values are within their
76// allowed limits, and returns an error if they are not.

Callers 1

validateValidatorUpdatesFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected