mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-01-07 19:04:20 +01:00
warning messages (#562)
This commit is contained in:
@@ -49,22 +49,19 @@ class LndRestWallet(LightningBackend):
|
||||
)
|
||||
|
||||
if not endpoint:
|
||||
raise Exception("cannot initialize lndrest: no endpoint")
|
||||
raise Exception("cannot initialize LndRestWallet: no endpoint")
|
||||
|
||||
if not macaroon:
|
||||
raise Exception("cannot initialize lndrest: no macaroon")
|
||||
raise Exception("cannot initialize LndRestWallet: no macaroon")
|
||||
|
||||
if not cert:
|
||||
logger.warning(
|
||||
"no certificate for lndrest provided, this only works if you have a"
|
||||
"no certificate for LndRestWallet provided, this only works if you have a"
|
||||
" publicly issued certificate"
|
||||
)
|
||||
|
||||
if not cert_verify:
|
||||
logger.warning(
|
||||
"certificate validation will be disabled for lndrest"
|
||||
)
|
||||
|
||||
logger.warning("certificate validation will be disabled for LndRestWallet")
|
||||
|
||||
endpoint = endpoint[:-1] if endpoint.endswith("/") else endpoint
|
||||
endpoint = (
|
||||
@@ -82,7 +79,6 @@ class LndRestWallet(LightningBackend):
|
||||
if not cert_verify:
|
||||
self.cert = False
|
||||
|
||||
|
||||
self.auth = {"Grpc-Metadata-macaroon": self.macaroon}
|
||||
self.client = httpx.AsyncClient(
|
||||
base_url=self.endpoint, headers=self.auth, verify=self.cert
|
||||
|
||||
Reference in New Issue
Block a user