code: func (obj TxValidationFlags) IsSetTo(txIndex int, flag peer.TxValidationCode) bool {
  	return obj.Flag(txIndex) == flag
  }
docs: // IsSetTo returns true if the specified transaction equals flag; false otherwise.