mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-20 13:27:51 +02:00
multi: bump lnd+lndclient compile time dependency
This commit bumps the compile time dependency of lnd and lndclient to the 0.16.x branch. This makes the code forward compatible but does not yet change anything with respect to the minimum required version the user needs to run.
This commit is contained in:
parent
a4f9df5f20
commit
30c7ef6531
13 changed files with 370 additions and 166 deletions
15
config.go
15
config.go
|
|
@ -431,15 +431,24 @@ func loadCertWithCreate(cfg *Config) (tls.Certificate, *x509.Certificate,
|
|||
!lnrpc.FileExists(cfg.TLSKeyPath) {
|
||||
|
||||
log.Infof("Generating TLS certificates...")
|
||||
err := cert.GenCertPair(
|
||||
defaultSelfSignedOrganization, cfg.TLSCertPath,
|
||||
cfg.TLSKeyPath, cfg.TLSExtraIPs,
|
||||
certBytes, keyBytes, err := cert.GenCertPair(
|
||||
defaultSelfSignedOrganization, cfg.TLSExtraIPs,
|
||||
cfg.TLSExtraDomains, cfg.TLSDisableAutofill,
|
||||
DefaultAutogenValidity,
|
||||
)
|
||||
if err != nil {
|
||||
return tls.Certificate{}, nil, err
|
||||
}
|
||||
|
||||
// Now that we have the certificate and key, we'll store them
|
||||
// to the file system.
|
||||
err = cert.WriteCertPair(
|
||||
cfg.TLSCertPath, cfg.TLSKeyPath, certBytes, keyBytes,
|
||||
)
|
||||
if err != nil {
|
||||
return tls.Certificate{}, nil, err
|
||||
}
|
||||
|
||||
log.Infof("Done generating TLS certificates")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue