don't hide uploaded blocks if we have no peers
This commit is contained in:
		
							parent
							
								
									0d58d57467
								
							
						
					
					
						commit
						6738eaf222
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -57,6 +57,8 @@ def daemon_event_handlers(shared_state: 'TooMany'): | |||
|     def upload_event(block: 'BlockHash' = ''): | ||||
|         if not block: | ||||
|             raise ValueError | ||||
|         if not comm_inst.onlinePeers: | ||||
|             return | ||||
|         public_api.hideBlocks.append(block) | ||||
|         try: | ||||
|             mixmate.block_mixer(comm_inst.blocksToUpload, block) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue