@api_request
async def request_ses_hashes(self, request: wallet_protocol.RequestSESInfo):
    'Returns the start and end height of a sub-epoch for the height specified in request'
    ses_height = self.full_node.blockchain.get_ses_heights()
    start_height = request.start_height
    end_height = request.end_height
    ses_hash_heights = []
    ses_reward_hashes = []
    for (idx, ses_start_height) in enumerate(ses_height):
        if (idx == (len(ses_height) - 1)):
            break
        next_ses_height = ses_height[(idx + 1)]
        if (ses_start_height <= start_height < next_ses_height):
            ses_hash_heights.append([ses_start_height, next_ses_height])
            ses: SubEpochSummary = self.full_node.blockchain.get_ses(ses_start_height)
            ses_reward_hashes.append(ses.reward_chain_hash)
            if (ses_start_height < end_height < next_ses_height):
                break
            else:
                if (idx == (len(ses_height) - 2)):
                    break
                next_next_height = ses_height[(idx + 2)]
                ses_hash_heights.append([next_ses_height, next_next_height])
                nex_ses: SubEpochSummary = self.full_node.blockchain.get_ses(next_ses_height)
                ses_reward_hashes.append(nex_ses.reward_chain_hash)
                break
    response = RespondSESInfo(ses_reward_hashes, ses_hash_heights)
    msg = make_msg(ProtocolMessageTypes.respond_ses_hashes, response)
    return msg
Returns the start and end height of a sub-epoch for the height specified in request
@api_request
async def request_ses_hashes(self, request: wallet_protocol.RequestSESInfo):
    
    ses_height = self.full_node.blockchain.get_ses_heights()
    start_height = request.start_height
    end_height = request.end_height
    ses_hash_heights = []
    ses_reward_hashes = []
    for (idx, ses_start_height) in enumerate(ses_height):
        if (idx == (len(ses_height) - 1)):
            break
        next_ses_height = ses_height[(idx + 1)]
        if (ses_start_height <= start_height < next_ses_height):
            ses_hash_heights.append([ses_start_height, next_ses_height])
            ses: SubEpochSummary = self.full_node.blockchain.get_ses(ses_start_height)
            ses_reward_hashes.append(ses.reward_chain_hash)
            if (ses_start_height < end_height < next_ses_height):
                break
            else:
                if (idx == (len(ses_height) - 2)):
                    break
                next_next_height = ses_height[(idx + 2)]
                ses_hash_heights.append([next_ses_height, next_next_height])
                nex_ses: SubEpochSummary = self.full_node.blockchain.get_ses(next_ses_height)
                ses_reward_hashes.append(nex_ses.reward_chain_hash)
                break
    response = RespondSESInfo(ses_reward_hashes, ses_hash_heights)
    msg = make_msg(ProtocolMessageTypes.respond_ses_hashes, response)
    return msg