mirror of
https://github.com/aljazceru/nostrdvm.git
synced 2026-01-03 22:34:22 +01:00
fix for cashutoken redeemed
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
anyio==3.7.1
|
|
||||||
beautifulsoup4==4.12.2
|
beautifulsoup4==4.12.2
|
||||||
bech32==1.2.0
|
bech32==1.2.0
|
||||||
bitarray==2.8.3
|
bitarray==2.8.3
|
||||||
bitstring==4.1.3
|
|
||||||
blessed==1.20.0
|
blessed==1.20.0
|
||||||
cassidy==0.1.4
|
cassidy==0.1.4
|
||||||
certifi==2023.7.22
|
certifi==2023.7.22
|
||||||
@@ -12,12 +10,10 @@ distro==1.8.0
|
|||||||
emoji==2.8.0
|
emoji==2.8.0
|
||||||
enumb==0.1.5
|
enumb==0.1.5
|
||||||
eva-decord==0.6.1
|
eva-decord==0.6.1
|
||||||
exceptiongroup==1.2.0
|
|
||||||
expo==0.1.2
|
expo==0.1.2
|
||||||
ffmpegio==0.8.5
|
ffmpegio==0.8.5
|
||||||
ffmpegio-core==0.8.5
|
ffmpegio-core==0.8.5
|
||||||
h11==0.14.0
|
h11==0.14.0
|
||||||
httpcore==1.0.2
|
|
||||||
httpx==0.25.1
|
httpx==0.25.1
|
||||||
idna==3.4
|
idna==3.4
|
||||||
inquirer==3.1.3
|
inquirer==3.1.3
|
||||||
|
|||||||
@@ -289,7 +289,7 @@ def redeem_cashu(cashu, required_amount, config, client) -> (bool, str):
|
|||||||
return False, err
|
return False, err
|
||||||
|
|
||||||
if config.LNBITS_INVOICE_KEY != "":
|
if config.LNBITS_INVOICE_KEY != "":
|
||||||
invoice = create_bolt11_ln_bits(redeem_invoice_amount, config)
|
invoice, paymenthash = create_bolt11_ln_bits(redeem_invoice_amount, config)
|
||||||
else:
|
else:
|
||||||
user = get_or_add_user(db=config.DB, npub=config.PUBLIC_KEY,
|
user = get_or_add_user(db=config.DB, npub=config.PUBLIC_KEY,
|
||||||
client=client, config=config)
|
client=client, config=config)
|
||||||
|
|||||||
Reference in New Issue
Block a user