code: func (v *TxValidator) allValidated(txsfltr ledgerUtil.TxValidationFlags, block *common.Block) error {
  	for id, f := range txsfltr {
  		if peer.TxValidationCode(f) == peer.TxValidationCode_NOT_VALIDATED {
  			return errors.Errorf("transaction %d in block %d has skipped validation", id, block.Header.Number)
  		}
  	}
  
  	return nil
  }
docs: // allValidated returns error if some of the validation flags have not been set
  // during validation