remove get_payment_status (#562)

* remove get_payment_status

* remove comments
This commit is contained in:
calle 2022-03-18 18:51:28 +01:00 committed by GitHub
parent 0f97f8f18b
commit 1209526147
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: