mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	don't check for exact LS
This commit is contained in:
		
							parent
							
								
									c4c495948a
								
							
						
					
					
						commit
						ff757ddc88
					
				
					 1 changed files with 6 additions and 9 deletions
				
			
		| 
						 | 
					@ -459,16 +459,13 @@ namespace client
 | 
				
			||||||
				// "this" added due to bug in gcc 4.7-4.8
 | 
									// "this" added due to bug in gcc 4.7-4.8
 | 
				
			||||||
				[s,this](std::shared_ptr<i2p::data::LeaseSet> leaseSet)
 | 
									[s,this](std::shared_ptr<i2p::data::LeaseSet> leaseSet)
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
					if (leaseSet)
 | 
										if (leaseSet && s->m_LeaseSet)
 | 
				
			||||||
					{
 | 
										{
 | 
				
			||||||
						if (s->m_LeaseSet && *s->m_LeaseSet == *leaseSet)
 | 
											// we got latest LeasetSet
 | 
				
			||||||
						{
 | 
											LogPrint (eLogDebug, "Destination: published LeaseSet verified for ", GetIdentHash().ToBase32());
 | 
				
			||||||
							// we got latest LeasetSet
 | 
											s->m_PublishVerificationTimer.expires_from_now (boost::posix_time::seconds(PUBLISH_REGULAR_VERIFICATION_INTERNAL));
 | 
				
			||||||
							LogPrint (eLogDebug, "Destination: published LeaseSet verified for ", GetIdentHash().ToBase32());
 | 
											s->m_PublishVerificationTimer.async_wait (std::bind (&LeaseSetDestination::HandlePublishVerificationTimer, s, std::placeholders::_1));	
 | 
				
			||||||
							s->m_PublishVerificationTimer.expires_from_now (boost::posix_time::seconds(PUBLISH_REGULAR_VERIFICATION_INTERNAL));
 | 
											return;
 | 
				
			||||||
							s->m_PublishVerificationTimer.async_wait (std::bind (&LeaseSetDestination::HandlePublishVerificationTimer, s, std::placeholders::_1));	
 | 
					 | 
				
			||||||
							return;
 | 
					 | 
				
			||||||
						}		
 | 
					 | 
				
			||||||
					}	
 | 
										}	
 | 
				
			||||||
					else
 | 
										else
 | 
				
			||||||
						LogPrint (eLogWarning, "Destination: couldn't find published LeaseSet for ", GetIdentHash().ToBase32());
 | 
											LogPrint (eLogWarning, "Destination: couldn't find published LeaseSet for ", GetIdentHash().ToBase32());
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue