From 835c2e527ef004a2b78078aafe3b5342dd70c604 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sat, 10 Oct 2020 08:49:33 +0000 Subject: [PATCH] Fixed encrypted uploads --- src/communicatorutils/uploadblocks/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/communicatorutils/uploadblocks/__init__.py b/src/communicatorutils/uploadblocks/__init__.py index b4e9806d..f9188105 100755 --- a/src/communicatorutils/uploadblocks/__init__.py +++ b/src/communicatorutils/uploadblocks/__init__.py @@ -67,8 +67,8 @@ def upload_blocks_from_communicator(comm_inst: 'OnionrCommunicatorDaemon'): session = session_manager.add_session(bl) for _ in range(min(len(kv.get('onlinePeers')), 6)): try: + peer = onlinepeers.pick_online_peer(kv) if not block.Block(bl).isEncrypted: - peer = onlinepeers.pick_online_peer(kv) if peer in kv.get('plaintextDisabledPeers'): logger.info(f"Cannot upload plaintext block to peer that denies it {peer}") # noqa continue