https://github.com/tendermint/tendermint
Raw File
Tip revision: ef12f0b9461a0e5c63522d743529e4816aab5ca0 authored by William Banfield on 30 July 2021, 20:13:38 UTC
tools: add mockery to tools.go and remove mockery version strings
Tip revision: ef12f0b
signed_msg_type.go
package types

import tmproto "github.com/tendermint/tendermint/proto/tendermint/types"

// IsVoteTypeValid returns true if t is a valid vote type.
func IsVoteTypeValid(t tmproto.SignedMsgType) bool {
	switch t {
	case tmproto.PrevoteType, tmproto.PrecommitType:
		return true
	default:
		return false
	}
}
back to top