def _getAttrReply(self, result, preparedReq): # TODO: Confirm if we need to add the retrieved attribute to the wallet. # If yes then change the graph query on node to return the sequence # number of the attribute txn too. _, attrKey = preparedReq attrib = self.getAttribute(AttributeKey(*attrKey)) if DATA in result: attrib.value = result[DATA] attrib.seqNo = result[F.seqNo.name] else: logger.debug("No attribute found")
def getAttribute(self, key: AttributeKey): return self._attributes.get(key.key())
def _attribReply(self, result, preparedReq): _, attrKey = preparedReq attrib = self.getAttribute(AttributeKey(*attrKey)) attrib.seqNo = result[F.seqNo.name]