mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
17 lines
377 B
Python
17 lines
377 B
Python
from decouple import config
|
|
|
|
LNVENDOR = config("LNVENDOR", cast=str, default="LND")
|
|
|
|
if LNVENDOR == "LND":
|
|
from api.lightning.lnd import LNDNode
|
|
|
|
LNNode = LNDNode
|
|
elif LNVENDOR == "CLN":
|
|
from api.lightning.cln import CLNNode
|
|
|
|
LNNode = CLNNode
|
|
else:
|
|
raise ValueError(
|
|
f'Invalid Lightning Node vendor: {LNVENDOR}. Must be either "LND" or "CLN"'
|
|
)
|