'This method is not called in the code, it is kept for console use'

def change_gap_limit(self, value):

    if (value >= self.gap_limit):
        self.gap_limit = value
        self.storage.put('gap_limit', self.gap_limit)
        return True
    elif (value >= self.min_acceptable_gap()):
        addresses = self.get_receiving_addresses()
        k = self.num_unused_trailing_addresses(addresses)
        n = ((len(addresses) - k) + value)
        self.receiving_addresses = self.receiving_addresses[0:n]
        self.gap_limit = value
        self.storage.put('gap_limit', self.gap_limit)
        self.save_addresses()
        return True
    else:
        return False
