mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-25 11:14:02 +02:00
fix having LND_GRPC_MACAROON as HEXSTRING issue #268
This commit is contained in:
committed by
fiatjaf
parent
9b89329029
commit
a32e43b2bb
@@ -190,7 +190,11 @@ class LndWallet(Wallet):
|
||||
ln.Invoice,
|
||||
),
|
||||
)
|
||||
macaroon = load_macaroon(self.macaroon_path)
|
||||
|
||||
if self.macaroon_path.split('.')[-1] == 'macaroon':
|
||||
macaroon = load_macaroon(self.macaroon_path)
|
||||
else:
|
||||
macaroon = self.macaroon_path
|
||||
|
||||
async for inv in subscribe_invoices(
|
||||
ln.InvoiceSubscription(),
|
||||
|
Reference in New Issue
Block a user