Here are the examples of the python api plenum.common.request.Request.fromState taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
3
View Complete Implementation : propagator.py
Copyright Apache License 2.0
Author : hyperledger
Copyright Apache License 2.0
Author : hyperledger
def set_finalised(self, req):
# TODO: make it much explicitly and simpler
# !side affect! if `req` is an instance of a child of `Request` clast
# here we construct the parent from child it is rather implicit that
# `finalised` contains not the same type than `propagates` has
# That is needed to create payload digest before cloning req to finalised
req.payload_digest
self.finalised = Request.fromState(req.__getstate__())
self.added_ts = None
self.finalised_ts = time.perf_counter()
0
View Complete Implementation : client_req_rep_store_file.py
Copyright Apache License 2.0
Author : hyperledger
Copyright Apache License 2.0
Author : hyperledger
def deserializeReq(self, serReq: str) -> Request:
return Request.fromState(
self.txnSerializer.deserialize(serReq))