Update clightning.py
This commit is contained in:
parent
908d1cbf24
commit
e57bebd01b
|
@ -1,4 +1,5 @@
|
||||||
from requests import get, post
|
from requests import get, post
|
||||||
|
from os import getenv
|
||||||
from .base import InvoiceResponse, PaymentResponse, PaymentStatus, Wallet
|
from .base import InvoiceResponse, PaymentResponse, PaymentStatus, Wallet
|
||||||
from lightning import LightningRpc
|
from lightning import LightningRpc
|
||||||
import random
|
import random
|
||||||
|
@ -6,7 +7,7 @@ import random
|
||||||
class CLightningWallet(Wallet):
|
class CLightningWallet(Wallet):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
l1 = LightningRpc()
|
l1 = LightningRpc(getenv("OPENNODE_API_ENDPOINT"))
|
||||||
|
|
||||||
def create_invoice(self, amount: int, memo: str = "") -> InvoiceResponse:
|
def create_invoice(self, amount: int, memo: str = "") -> InvoiceResponse:
|
||||||
label = "lbl{}".format(random.random())
|
label = "lbl{}".format(random.random())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user