From 027701882a9d630d14a927a378048bd8b45bf01b Mon Sep 17 00:00:00 2001 From: TheKysek Date: Mon, 17 Oct 2016 19:11:17 +0200 Subject: [PATCH] Fix a bug where content of unchecked_node_pool was overwriting node_pool --- src/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manager.py b/src/manager.py index 8ba3b9d..ce53667 100644 --- a/src/manager.py +++ b/src/manager.py @@ -105,7 +105,7 @@ class Manager(threading.Thread): if len(shared.node_pool) > 10000: shared.node_pool = set(random.sample(shared.node_pool, 10000)) if len(shared.unchecked_node_pool) > 1000: - shared.node_pool = set(random.sample(shared.unchecked_node_pool, 1000)) + shared.unchecked_node_pool = set(random.sample(shared.unchecked_node_pool, 1000)) try: with open(shared.data_directory + 'nodes.pickle', mode='bw') as file: pickle.dump(shared.node_pool, file, protocol=4)