refactor: unify responses in backend wallets

This commit is contained in:
Eneko Illarramendi
2020-01-10 21:26:42 +01:00
parent 676fa29852
commit 47b93a97d6
8 changed files with 200 additions and 139 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import os
from .wallets import LntxbotWallet # OR LndHubWallet
from .wallets import LntxbotWallet # OR LndWallet
WALLET = LntxbotWallet(
@@ -10,7 +10,7 @@ WALLET = LntxbotWallet(
)
# OR
# WALLET = LndHubWallet(uri=os.getenv("LNDHUB_URI"))
# WALLET = LndWallet(endpoint=os.getenv("LND_API_ENDPOINT"), admin_macaroon=os.getenv("LND_ADMIN_MACAROON"))
LNBITS_PATH = os.path.dirname(os.path.realpath(__file__))
DATABASE_PATH = os.getenv("DATABASE_PATH") or os.path.join(LNBITS_PATH, "data", "database.sqlite3")