mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-20 13:51:26 +02:00
refactor: simplify logic
This commit is contained in:
parent
b89e30896f
commit
a7c72577cf
@ -200,7 +200,9 @@ async def invoice_callback_dispatcher(checking_id: str, is_internal: bool = Fals
|
|||||||
invoice_listeners from core and extensions.
|
invoice_listeners from core and extensions.
|
||||||
"""
|
"""
|
||||||
payment = await get_standalone_payment(checking_id, incoming=True)
|
payment = await get_standalone_payment(checking_id, incoming=True)
|
||||||
if payment and payment.is_in:
|
if not payment or payment.is_out:
|
||||||
|
return
|
||||||
|
|
||||||
status = await payment.check_status()
|
status = await payment.check_status()
|
||||||
payment.fee = status.fee_msat or 0
|
payment.fee = status.fee_msat or 0
|
||||||
# only overwrite preimage if status.preimage provides it
|
# only overwrite preimage if status.preimage provides it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user