Add a fallback to LND_REST_CERT to use the system chain if its not present (#539)
This commit is contained in:
@@ -43,7 +43,7 @@ class LndRestWallet(Wallet):
|
|||||||
self.macaroon = load_macaroon(macaroon)
|
self.macaroon = load_macaroon(macaroon)
|
||||||
|
|
||||||
self.auth = {"Grpc-Metadata-macaroon": self.macaroon}
|
self.auth = {"Grpc-Metadata-macaroon": self.macaroon}
|
||||||
self.cert = getenv("LND_REST_CERT")
|
self.cert = getenv("LND_REST_CERT", True)
|
||||||
|
|
||||||
async def status(self) -> StatusResponse:
|
async def status(self) -> StatusResponse:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user