def _handle_info_message(self, node, source_id, message): received = time.time() message = read_info(node.server.btctxstore, message) if message is None: return # dont care about this message with self.mutex: data = self.scanning.get(message.sender) if data is None: return # not being scanned _log.info("Received info from {0}!".format( node_id_to_address(message.sender)) ) data["latency"]["info"] = received - data["latency"]["info"] data["storage"] = message.body.storage data["network"] = message.body.network data["version"] = (message.version, message.body.version) self._check_scan_complete(message.sender, data)
def _handle_info_message(self, node, message): received = time.time() message = read_info(node.server.btctxstore, message) if message is None: return # dont care about this message with self.pipeline_mutex: data = self.pipeline_scanning.get(message.sender) if data is None: return # not being scanned _log.info("Received info from {0}!".format( node_id_to_address(message.sender)) ) data["latency"]["info"] = received - data["latency"]["info"] data["version"] = { "protocol": message.version, "storjnode": message.body.version } data["storage"] = message.body.storage._asdict() data["network"] = message.body.network._asdict() data["platform"] = message.body.platform._asdict() self._check_scan_complete(message.sender, data)