Skip to content

Commit

Permalink
fix: use incoming payment for check (#17)
Browse files Browse the repository at this point in the history
internal payment werent working`
  • Loading branch information
dni authored Sep 3, 2024
1 parent 56ce5fc commit 20ac5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def displaywin(request: Request, link_id: str, payment_hash: str):
)
rand = random.randint(0, 100)
chance = satsdicelink.chance
core_payment = await get_standalone_payment(payment_hash)
core_payment = await get_standalone_payment(payment_hash, incoming=True)
status = (await core_payment.check_status()).success if core_payment else False
if not rand < chance or not status:
await update_satsdice_payment(payment_hash, lost=1)
Expand Down

0 comments on commit 20ac5a0

Please sign in to comment.