iota/transaction/validator.py
def is_valid(self):
        # type: () -> bool
        """
        Returns whether the bundle is valid.
        """
        if not self._errors:
            try:
                # We only have to check for a single error to determine
                # if the bundle is valid or not.
                self._errors.append(next(self._validator))
            except StopIteration:
                pass

        return not self._errors
def is_valid(self):
        # type: () -> bool
        if not self._errors:
            try:
                # We only have to check for a single error to determine
                # if the bundle is valid or not.
                self._errors.append(next(self._validator))
            except StopIteration:
                pass

        return not self._errors
def is_valid ( self ) : # type: () -> bool if not self . _errors : try : # We only have to check for a single error to determine # if the bundle is valid or not. self . _errors . append ( next ( self . _validator ) ) except StopIteration : pass return not self . _errors
Returns whether the bundle is valid.
Returns whether the bundle is valid .