From 385cda47cf5d767ac3a3351585e951a7abed805b Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Mon, 19 Dec 2022 15:48:55 +0100 Subject: [PATCH 1/2] fix cln setting --- lnbits/wallets/cln.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/wallets/cln.py b/lnbits/wallets/cln.py index 4cb72f97..5d696593 100644 --- a/lnbits/wallets/cln.py +++ b/lnbits/wallets/cln.py @@ -51,7 +51,7 @@ class CoreLightningWallet(Wallet): "The `pyln-client` library must be installed to use `CoreLightningWallet`." ) - self.rpc = settings.corelightning_rpc or settings.clightning_rpc + self.rpc = settings.corelightning_rpc self.ln = LightningRpc(self.rpc) # check if description_hash is supported (from CLN>=v0.11.0) From 7650d5775ff0fdd350e374b80342f1d7dea15422 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Mon, 19 Dec 2022 15:54:31 +0100 Subject: [PATCH 2/2] backwards compatible --- lnbits/settings.py | 1 + lnbits/wallets/cln.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lnbits/settings.py b/lnbits/settings.py index e75f5b62..59eb376b 100644 --- a/lnbits/settings.py +++ b/lnbits/settings.py @@ -82,6 +82,7 @@ class ClicheFundingSource(LNbitsSettings): class CoreLightningFundingSource(LNbitsSettings): corelightning_rpc: Optional[str] = Field(default=None) + clightning_rpc: Optional[str] = Field(default=None) class EclairFundingSource(LNbitsSettings): diff --git a/lnbits/wallets/cln.py b/lnbits/wallets/cln.py index 5d696593..4cb72f97 100644 --- a/lnbits/wallets/cln.py +++ b/lnbits/wallets/cln.py @@ -51,7 +51,7 @@ class CoreLightningWallet(Wallet): "The `pyln-client` library must be installed to use `CoreLightningWallet`." ) - self.rpc = settings.corelightning_rpc + self.rpc = settings.corelightning_rpc or settings.clightning_rpc self.ln = LightningRpc(self.rpc) # check if description_hash is supported (from CLN>=v0.11.0)