FEAT: add funding source fallback and VoidWallet warning for frontend

This commit is contained in:
dni ⚡
2023-03-02 12:03:58 +01:00
parent c81d3e06c8
commit e93fbd24be
4 changed files with 32 additions and 5 deletions
+3 -2
View File
@@ -317,8 +317,9 @@ def set_cli_settings(**kwargs):
# set wallet class after settings are loaded
def set_wallet_class():
wallet_class = getattr(wallets_module, settings.lnbits_backend_wallet_class)
def set_wallet_class(class_name: Optional[str] = None):
backend_wallet_class = class_name or settings.lnbits_backend_wallet_class
wallet_class = getattr(wallets_module, backend_wallet_class)
global WALLET
WALLET = wallet_class()