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
-15
View File
@@ -1,15 +0,0 @@
from typing import Optional
from .base import Node
def get_node_class() -> Optional[Node]:
return NODE
def set_node_class(node: Node):
global NODE
NODE = node
NODE: Optional[Node] = None
+1 -1
View File
@@ -11,12 +11,12 @@ from httpx import HTTPStatusError
from loguru import logger
from lnbits.db import Filters, Page
from lnbits.nodes import Node
from lnbits.nodes.base import (
ChannelBalance,
ChannelPoint,
ChannelState,
ChannelStats,
Node,
NodeChannel,
NodeFees,
NodeInfoResponse,