lncfg: move ParseHexColor to lncfg

This commit is contained in:
Andras Banki-Horvath
2022-01-19 20:39:14 +01:00
parent 3829385073
commit 825422a82a
5 changed files with 79 additions and 66 deletions

View File

@@ -1596,7 +1596,7 @@ func ValidateConfig(cfg Config, interceptor signal.Interceptor, fileParser,
// Finally, ensure that the user's color is correctly formatted,
// otherwise the server will not be able to start after the unlocking
// the wallet.
_, err = parseHexColor(cfg.Color)
_, err = lncfg.ParseHexColor(cfg.Color)
if err != nil {
return nil, mkErr("unable to parse node color: %v", err)
}