(params tmproto.ValidatorParams, pubkeyType string)
| 64 | } |
| 65 | |
| 66 | func 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. |
no outgoing calls
no test coverage detected