mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	fixed bug in initial synchronization
This commit is contained in:
		
							parent
							
								
									b978e27b2f
								
							
						
					
					
						commit
						c50074fd55
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -222,7 +222,7 @@ void ValidatorManagerMasterchainReiniter::choose_masterchain_state() {
 | 
			
		|||
    if (!p || ValidatorManager::is_persistent_state(h->unix_time(), p->unix_time())) {
 | 
			
		||||
      auto ttl = ValidatorManager::persistent_state_ttl(h->unix_time());
 | 
			
		||||
      td::Clocks::Duration time_to_download = 3600;
 | 
			
		||||
      if (ttl > td::Clocks::system() + time_to_download) {
 | 
			
		||||
      if (ttl < td::Clocks::system() + time_to_download) {
 | 
			
		||||
        handle = h;
 | 
			
		||||
        break;
 | 
			
		||||
      } else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue