Fixed encrypted uploads
This commit is contained in:
		
							parent
							
								
									1c44a514a5
								
							
						
					
					
						commit
						835c2e527e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -67,8 +67,8 @@ def upload_blocks_from_communicator(comm_inst: 'OnionrCommunicatorDaemon'): | ||||||
|             session = session_manager.add_session(bl) |             session = session_manager.add_session(bl) | ||||||
|             for _ in range(min(len(kv.get('onlinePeers')), 6)): |             for _ in range(min(len(kv.get('onlinePeers')), 6)): | ||||||
|                 try: |                 try: | ||||||
|  |                     peer = onlinepeers.pick_online_peer(kv) | ||||||
|                     if not block.Block(bl).isEncrypted: |                     if not block.Block(bl).isEncrypted: | ||||||
|                         peer = onlinepeers.pick_online_peer(kv) |  | ||||||
|                         if peer in kv.get('plaintextDisabledPeers'): |                         if peer in kv.get('plaintextDisabledPeers'): | ||||||
|                             logger.info(f"Cannot upload plaintext block to peer that denies it {peer}")  # noqa |                             logger.info(f"Cannot upload plaintext block to peer that denies it {peer}")  # noqa | ||||||
|                             continue |                             continue | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue