feat: introduce self.features to wallets, refactor feature nodemanager (#3260)

This commit is contained in:
dni ⚡
2025-07-15 11:15:13 +02:00
parent 256a8098c6
commit 6e9f451419
9 changed files with 36 additions and 29 deletions
+2
View File
@@ -14,6 +14,7 @@ from lnbits.settings import settings
from lnbits.utils.crypto import random_secret_and_hash
from .base import (
Feature,
InvoiceResponse,
PaymentFailedStatus,
PaymentPendingStatus,
@@ -30,6 +31,7 @@ class LndRestWallet(Wallet):
"""https://api.lightning.community/rest/index.html#lnd-rest-api-reference"""
__node_cls__ = LndRestNode
features = [Feature.nodemanager]
def __init__(self):
if not settings.lnd_rest_endpoint: