Exemple #1
0
 def __init__(self, protobuf_blockheader=None):
     """
     >>> BlockHeader() is not None
     True
     """
     self._data = protobuf_blockheader
     if protobuf_blockheader is None:
         self._data = qrl_pb2.BlockHeader()
Exemple #2
0
 def from_json(json_data):
     pbdata = qrl_pb2.BlockHeader()
     Parse(json_data, pbdata)
     return BlockHeader(pbdata)