示例#1
0
    def __init__(self, protobuf_block=None):
        self._data = protobuf_block
        if protobuf_block is None:
            self._data = xrd_pb2.Block()

        self.blockheader = BlockHeader(self._data.header)
示例#2
0
 def test_init(self, time_mock):
     block_header = BlockHeader()
     self.assertIsNotNone(block_header)  # just to avoid warnings