示例#1
0
 def isFinalised(self, f):
     if self.finalised is None:
         req = checkIfMoreThanFSameItems([v.__getstate__() for v in
                                          self.propagates.values()], f)
         if req:
             self.finalised = Request.fromState(req)
     return self.finalised
示例#2
0
 def isFinalised(self, f):
     if self.finalised is None:
         req = checkIfMoreThanFSameItems([v.__getstate__() for v in
                                          self.propagates.values()], f)
         if req:
             self.finalised = Request.fromState(req)
     return self.finalised
示例#3
0
 def set_finalised(self, req):
     # TODO: make it much explicitly and simpler
     # !side affect! if `req` is an instance of a child of `Request` class
     # here we construct the parent from child it is rather implicit that
     # `finalised` contains not the same type than `propagates` has
     self.finalised = Request.fromState(req.__getstate__())
     self.added_ts = None
     self.finalised_ts = time.perf_counter()
示例#4
0
 def set_finalised(self, req):
     # TODO: make it much explicitly and simpler
     # !side affect! if `req` is an instance of a child of `Request` class
     # here we construct the parent from child it is rather implicit that
     # `finalised` contains not the same type than `propagates` has
     self.finalised = Request.fromState(req.__getstate__())
     self.added_ts = None
     self.finalised_ts = time.perf_counter()
示例#5
0
 def deserializeReq(self, serReq: str) -> Request:
     return Request.fromState(self.txnSerializer.deserialize(serReq))
 def deserializeReq(serReq: str) -> Request:
     return Request.fromState(json.loads(serReq))
 def deserializeReq(serReq: str) -> Request:
     return Request.fromState(json.loads(serReq))