You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
307 B

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
}
}