diff --git a/static-data/default-plugins/torgossip/commandhandlers.py b/static-data/default-plugins/torgossip/commandhandlers.py index 5691b8f3..42d4b1ce 100644 --- a/static-data/default-plugins/torgossip/commandhandlers.py +++ b/static-data/default-plugins/torgossip/commandhandlers.py @@ -30,10 +30,8 @@ def put_block(safe_db, block): Kasten(block_hash, data, onionrblocks.generators.AnonVDFGenerator), safe_db) except ValueError: - print("Block was seen before") pass except Exception as e: - print("Unknown error" + repr(e)) return b"0" return b"1" diff --git a/static-data/default-plugins/torgossip/runtest.py b/static-data/default-plugins/torgossip/runtest.py index fed21b42..53d20836 100644 --- a/static-data/default-plugins/torgossip/runtest.py +++ b/static-data/default-plugins/torgossip/runtest.py @@ -48,4 +48,7 @@ def torgossip_runtest(test_manager): s.sendall(b'4' + bl_new.id) assert s.recv(64) == bl_new.get_packed() + # test block was uploaded by getting it + s.sendall(b'6') + assert s.recv(64) == b"BYE"