async def _periodically_self_advertise_and_clean_data(self):
    while (not self.is_closed):
        try:
            try:
                (await asyncio.sleep((24 * 3600)))
            except asyncio.CancelledError:
                return None
            async with self.lock:
                for neighbour in list(self.neighbour_known_peers.keys()):
                    self.neighbour_known_peers[neighbour].clear()
            peer = (await self.server.get_peer_info())
            if (peer is None):
                continue
            timestamped_peer = [TimestampedPeerInfo(peer.host, peer.port, uint64(int(time.time())))]
            msg = make_msg(ProtocolMessageTypes.respond_peers, full_node_protocol.RespondPeers(timestamped_peer))
            (await self.server.send_to_all([msg], NodeType.FULL_NODE))
            async with self.lock:
                for host in list(self.received_count_from_peers.keys()):
                    self.received_count_from_peers[host] = 0
        except Exception as e:
            self.log.error(f'Exception in self advertise: {e}')
            self.log.error(f'Traceback: {traceback.format_exc()}')
async def _periodically_self_advertise_and_clean_data(self):
    while (not self.is_closed):
        try:
            try:
                (await asyncio.sleep((24 * 3600)))
            except asyncio.CancelledError:
                return None
            async with self.lock:
                for neighbour in list(self.neighbour_known_peers.keys()):
                    self.neighbour_known_peers[neighbour].clear()
            peer = (await self.server.get_peer_info())
            if (peer is None):
                continue
            timestamped_peer = [TimestampedPeerInfo(peer.host, peer.port, uint64(int(time.time())))]
            msg = make_msg(ProtocolMessageTypes.respond_peers, full_node_protocol.RespondPeers(timestamped_peer))
            (await self.server.send_to_all([msg], NodeType.FULL_NODE))
            async with self.lock:
                for host in list(self.received_count_from_peers.keys()):
                    self.received_count_from_peers[host] = 0
        except Exception as e:
            self.log.error(f'Exception in self advertise: {e}')
            self.log.error(f'Traceback: {traceback.format_exc()}')