Arc
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
6 deletions
-
lnbits/settings.py
|
@ -1,12 +1,10 @@ |
|
|
import os |
|
|
import os |
|
|
|
|
|
|
|
|
from .wallets import OpenNodeWallet # OR LndWallet OR OpennodeWallet |
|
|
from .wallets import LndWallet # OR LndWallet OR OpennodeWallet |
|
|
|
|
|
|
|
|
WALLET = OpenNodeWallet(endpoint=os.getenv("OPENNODE_API_ENDPOINT"),admin_key=os.getenv("OPENNODE_ADMIN_KEY"),invoice_key=os.getenv("OPENNODE_INVOICE_KEY")) |
|
|
|
|
|
# OR |
|
|
|
|
|
# WALLET = LntxbotWallet(endpoint=os.getenv("LNTXBOT_API_ENDPOINT"),admin_key=os.getenv("LNTXBOT_ADMIN_KEY"),invoice_key=os.getenv("LNTXBOT_INVOICE_KEY"),) |
|
|
|
|
|
# WALLET = LndWallet(endpoint=os.getenv("LND_API_ENDPOINT"), admin_macaroon=os.getenv("LND_ADMIN_MACAROON")) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#WALLET = OpenNodeWallet(endpoint=os.getenv("OPENNODE_API_ENDPOINT"),admin_key=os.getenv("OPENNODE_ADMIN_KEY"),invoice_key=os.getenv("OPENNODE_INVOICE_KEY")) |
|
|
|
|
|
#WALLET = LntxbotWallet(endpoint=os.getenv("LNTXBOT_API_ENDPOINT"),admin_key=os.getenv("LNTXBOT_ADMIN_KEY"),invoice_key=os.getenv("LNTXBOT_INVOICE_KEY")) |
|
|
|
|
|
WALLET = LndWallet(endpoint=os.getenv("LND_API_ENDPOINT"),admin_macaroon=os.getenv("LND_ADMIN_MACAROON"),invoice_macaroon=os.getenv("LND_INVOICE_MACAROON"),read_macaroon=os.getenv("LND_READ_MACAROON")) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LNBITS_PATH = os.path.dirname(os.path.realpath(__file__)) |
|
|
LNBITS_PATH = os.path.dirname(os.path.realpath(__file__)) |
|
|