Example #1
0
 async def __download_blocks(self, block_header_list):
     block_hash_list = [b.get_hash() for b in block_header_list]
     op, resp, rpc_id = await self.shard_conn.write_rpc_request(
         CommandOp.GET_MINOR_BLOCK_LIST_REQUEST,
         GetMinorBlockListRequest(block_hash_list),
     )
     return resp.minor_block_list
Example #2
0
 async def __download_blocks(block_hash_list):
     op, resp, rpc_id = await peer_shard_conn.write_rpc_request(
         CommandOp.GET_MINOR_BLOCK_LIST_REQUEST,
         GetMinorBlockListRequest(block_hash_list),
     )
     return resp.minor_block_list