def ready(self):
        self.responding = False
        self.synchronised = False

        self.get_cpu_average()

        try:
            self._proxy.getinfo()
            self.responding = True
        except (__HOLE__, socket.error, httplib.CannotSendRequest) as e:
            # print "daemon offline"
            pass
        except JSONRPCException as e:
            # "loading block index"
            # print str(e.error['message'])
            pass

        try:
            resp = self._proxy.masternode('debug')
            if 'Node just started' not in resp:
                self.synchronised = True
        except (ValueError, socket.error, httplib.CannotSendRequest) as e:
            # print "daemon offline"
            pass
        except JSONRPCException as e:
            resp = str(e.error['message'])
            if 'masternode' in resp:
                if self.get_cpu_average() < 50:
                    self.synchronised = True

        logmsg = self.responding and 'responding, ' or 'not responding, '
        logmsg += self.synchronised and 'synchronised, ' or 'not synchronised, '
        logmsg += 'cpu: ' + "{0:.2f}".format(self.get_cpu_average())
        info(logmsg)

        return (self.responding and self.synchronised)

# doesn't work due to
#            name = "%s.%s" % (self.__service_name, name)
#        return AuthServiceProxy(self.__service_url, name, connection=self.__conn)  # noqa
#    def __getattr__(self, attr):
#        if getattr(self._proxy, attr):
#            getattr(self._proxy, attr)()
#        else:
#            raise AttributeError
dataset/ETHPy150Open moocowmoo/dashvend/bin/dashvend/dashrpc.py/DashRPC.ready