mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	remove testing panics
This commit is contained in:
		
							parent
							
								
									ea1d21f7e5
								
							
						
					
					
						commit
						495891d9e8
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -281,7 +281,6 @@ func (p *peer) handleSwitchMsg(packet []byte) {
 | 
			
		|||
	}
 | 
			
		||||
	//p.core.log.Println("Decoded msg:", msg, "; bytes:", packet)
 | 
			
		||||
	if len(msg.Hops) < 1 {
 | 
			
		||||
		panic("FIXME testing")
 | 
			
		||||
		p.core.peers.removePeer(p.port)
 | 
			
		||||
	}
 | 
			
		||||
	var loc switchLocator
 | 
			
		||||
| 
						 | 
				
			
			@ -293,7 +292,6 @@ func (p *peer) handleSwitchMsg(packet []byte) {
 | 
			
		|||
		loc.coords = append(loc.coords, hop.Port)
 | 
			
		||||
		bs := getBytesForSig(&hop.Next, &sigMsg)
 | 
			
		||||
		if !p.core.sigs.check(&prevKey, &hop.Sig, bs) {
 | 
			
		||||
			panic("FIXME testing")
 | 
			
		||||
			p.core.peers.removePeer(p.port)
 | 
			
		||||
		}
 | 
			
		||||
		prevKey = hop.Next
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue