diff --git a/lbrynet/conf.py b/lbrynet/conf.py index 14fa45b53..3a8871f1d 100644 --- a/lbrynet/conf.py +++ b/lbrynet/conf.py @@ -168,9 +168,11 @@ def server_port(server_and_port): def server_list(servers): return [server_port(server) for server in servers] + def server_list_reverse(servers): return ["%s:%s" % (server, port) for server, port in servers] + class Env(envparse.Env): """An Env parser that automatically namespaces the variables with LBRY""" @@ -299,7 +301,8 @@ ADJUSTABLE_SETTINGS = { 'blockchain_name': (str, 'lbrycrd_main'), 'lbryum_servers': (list, [('lbryumx1.lbry.io', 50001), ('lbryumx2.lbry.io', 50001)], server_list, server_list_reverse), - 's3_headers_depth': (int, 96 * 10) # download headers from s3 when the local height is more than 10 chunks behind + 's3_headers_depth': (int, 96 * 10), # download headers from s3 when the local height is more than 10 chunks behind + 'components_to_skip': (list, ['reflector']) # components which will be skipped during start-up of daemon } diff --git a/lbrynet/core/BlobManager.py b/lbrynet/core/BlobManager.py index 370a3ddeb..4a86ed581 100644 --- a/lbrynet/core/BlobManager.py +++ b/lbrynet/core/BlobManager.py @@ -27,7 +27,8 @@ class DiskBlobManager(object): self.blob_hashes_to_delete = {} # {blob_hash: being_deleted (True/False)} self.check_should_announce_lc = None - if conf.settings['run_reflector_server']: # TODO: move this looping call to SQLiteStorage + # TODO: move this looping call to SQLiteStorage + if 'reflector' not in conf.settings['components_to_skip']: self.check_should_announce_lc = task.LoopingCall(self.storage.verify_will_announce_all_head_and_sd_blobs) @defer.inlineCallbacks