def get_sync_progress_estimate(self) -> Tuple[(Optional[int], Optional[int], Optional[int])]:
    'Estimates the gossip synchronization process and returns the number\n        of synchronized channels, the total channels in the network and a\n        rescaled percentage of the synchronization process.'
    if (self.num_peers() == 0):
        return (None, None, None)
    (nchans_with_0p, nchans_with_1p, nchans_with_2p) = self.channel_db.get_num_channels_partitioned_by_policy_count()
    num_db_channels = ((nchans_with_0p + nchans_with_1p) + nchans_with_2p)
    current_est = (num_db_channels - nchans_with_0p)
    total_est = (len(self.unknown_ids) + num_db_channels)
    progress = ((current_est / total_est) if (total_est and current_est) else 0)
    progress_percent = (((1.0 / 0.95) * progress) * 100)
    progress_percent = min(progress_percent, 100)
    progress_percent = round(progress_percent)
    if (current_est < 200):
        progress_percent = 0
    return (current_est, total_est, progress_percent)
Estimates the gossip synchronization process and returns the number
of synchronized channels, the total channels in the network and a
rescaled percentage of the synchronization process.
def get_sync_progress_estimate(self) -> Tuple[(Optional[int], Optional[int], Optional[int])]:
    'Estimates the gossip synchronization process and returns the number\n        of synchronized channels, the total channels in the network and a\n        rescaled percentage of the synchronization process.'
    if (self.num_peers() == 0):
        return (None, None, None)
    (nchans_with_0p, nchans_with_1p, nchans_with_2p) = self.channel_db.get_num_channels_partitioned_by_policy_count()
    num_db_channels = ((nchans_with_0p + nchans_with_1p) + nchans_with_2p)
    current_est = (num_db_channels - nchans_with_0p)
    total_est = (len(self.unknown_ids) + num_db_channels)
    progress = ((current_est / total_est) if (total_est and current_est) else 0)
    progress_percent = (((1.0 / 0.95) * progress) * 100)
    progress_percent = min(progress_percent, 100)
    progress_percent = round(progress_percent)
    if (current_est < 200):
        progress_percent = 0
    return (current_est, total_est, progress_percent)