From 6a11ba38eb8824397a9878f17d1ce079fea1d0e9 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Wed, 3 Jul 2019 21:37:20 -0500 Subject: [PATCH 1/2] correct downloadblocks bhash var name --- onionr/communicatorutils/downloadblocks.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/onionr/communicatorutils/downloadblocks.py b/onionr/communicatorutils/downloadblocks.py index a1ab18c9..cb208391 100755 --- a/onionr/communicatorutils/downloadblocks.py +++ b/onionr/communicatorutils/downloadblocks.py @@ -24,14 +24,13 @@ from onionrutils import blockmetadata, stringvalidators, validatemetadata def _should_download(comm_inst, block_hash): ret_data = True if block_hash in comm_inst._core.getBlockList(): - #logger.debug('Block %s is already saved.' % (blockHash,)) ret_data = False else: - if comm_inst._core._blacklist.inBlacklist(blockHash): + if comm_inst._core._blacklist.inBlacklist(blocka_hash): ret_data = False if ret_data is False: try: - del comm_inst.blockQueue[blockHash] + del comm_inst.blockQueue[block_hash] except KeyError: pass return ret_data From 076678d1af8beccc1a532c611b52f870d95dc2ab Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Wed, 3 Jul 2019 21:41:41 -0500 Subject: [PATCH 2/2] correct downloadblocks bhash var name --- onionr/communicatorutils/downloadblocks.py | 2 +- onionr/static-data/bootstrap-nodes.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/onionr/communicatorutils/downloadblocks.py b/onionr/communicatorutils/downloadblocks.py index cb208391..6d1c8daf 100755 --- a/onionr/communicatorutils/downloadblocks.py +++ b/onionr/communicatorutils/downloadblocks.py @@ -26,7 +26,7 @@ def _should_download(comm_inst, block_hash): if block_hash in comm_inst._core.getBlockList(): ret_data = False else: - if comm_inst._core._blacklist.inBlacklist(blocka_hash): + if comm_inst._core._blacklist.inBlacklist(block_hash): ret_data = False if ret_data is False: try: diff --git a/onionr/static-data/bootstrap-nodes.txt b/onionr/static-data/bootstrap-nodes.txt index 885591e6..e69de29b 100755 --- a/onionr/static-data/bootstrap-nodes.txt +++ b/onionr/static-data/bootstrap-nodes.txt @@ -1 +0,0 @@ -6i2apk7llawfcqy4y4xumqiedo7nltczmdk2cbvdztaqpkjnygwwz6qd.onion \ No newline at end of file