mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Further tweaks to transition handling
This commit is contained in:
		
							parent
							
								
									4a684e7caf
								
							
						
					
					
						commit
						80b6bf0c78
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
					@ -90,6 +90,8 @@ func readConfig(log *log.Logger, useconf *bool, useconffile *string, normaliseco
 | 
				
			||||||
				pub := priv.Public().(ed25519.PublicKey)
 | 
									pub := priv.Public().(ed25519.PublicKey)
 | 
				
			||||||
				dat["PrivateKey"] = hex.EncodeToString(priv[:])
 | 
									dat["PrivateKey"] = hex.EncodeToString(priv[:])
 | 
				
			||||||
				dat["PublicKey"] = hex.EncodeToString(pub[:])
 | 
									dat["PublicKey"] = hex.EncodeToString(pub[:])
 | 
				
			||||||
 | 
								} else {
 | 
				
			||||||
 | 
									log.Warnln("WARNING: The \"SigningPrivateKey\" configuration option contains an invalid value and will be ignored")
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					@ -187,7 +189,11 @@ func main() {
 | 
				
			||||||
		logger.Warnln("Logging defaulting to stdout")
 | 
							logger.Warnln("Logging defaulting to stdout")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if *normaliseconf {
 | 
				
			||||||
 | 
							setLogLevel("error", logger)
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
		setLogLevel(*loglevel, logger)
 | 
							setLogLevel(*loglevel, logger)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	var cfg *config.NodeConfig
 | 
						var cfg *config.NodeConfig
 | 
				
			||||||
	var err error
 | 
						var err error
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue