mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-29 18:10:46 +02:00
Merge branch 'main' into fix/renameWallet
This commit is contained in:
@ -13,7 +13,7 @@ LNbits uses [Pipenv][pipenv] to manage Python packages.
|
|||||||
git clone https://github.com/lnbits/lnbits-legend.git
|
git clone https://github.com/lnbits/lnbits-legend.git
|
||||||
cd lnbits-legend/
|
cd lnbits-legend/
|
||||||
|
|
||||||
sudo apt-get install -y python3-venv
|
sudo apt-get install pipenv
|
||||||
pipenv shell
|
pipenv shell
|
||||||
# pipenv --python 3.9 shell (if you wish to use a version of Python higher than 3.7)
|
# pipenv --python 3.9 shell (if you wish to use a version of Python higher than 3.7)
|
||||||
pipenv install --dev
|
pipenv install --dev
|
||||||
|
@ -321,10 +321,7 @@ async def check_invoice_status(
|
|||||||
payment = await get_wallet_payment(wallet_id, payment_hash, conn=conn)
|
payment = await get_wallet_payment(wallet_id, payment_hash, conn=conn)
|
||||||
if not payment:
|
if not payment:
|
||||||
return PaymentStatus(None)
|
return PaymentStatus(None)
|
||||||
if payment.is_out:
|
status = await WALLET.get_invoice_status(payment.checking_id)
|
||||||
status = await WALLET.get_payment_status(payment.checking_id)
|
|
||||||
else:
|
|
||||||
status = await WALLET.get_invoice_status(payment.checking_id)
|
|
||||||
if not payment.pending:
|
if not payment.pending:
|
||||||
return status
|
return status
|
||||||
if payment.is_out and status.failed:
|
if payment.is_out and status.failed:
|
||||||
|
Reference in New Issue
Block a user