Esempio n. 1
0
 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")
Esempio n. 2
0
 def getAttribute(self, key: AttributeKey):
     return self._attributes.get(key.key())
Esempio n. 3
0
 def _attribReply(self, result, preparedReq):
     _, attrKey = preparedReq
     attrib = self.getAttribute(AttributeKey(*attrKey))
     attrib.seqNo = result[F.seqNo.name]
Esempio n. 4
0
 def getAttribute(self, key: AttributeKey):
     return self._attributes.get(key.key())