test: add regtest testcase for no route failure (#3189)

This commit is contained in:
dni ⚡
2025-07-08 10:17:25 +02:00
parent ab3248da15
commit c4c03d96a3
7 changed files with 128 additions and 53 deletions
+3
View File
@@ -378,6 +378,9 @@ async def api_payment(payment_hash, x_api_key: Optional[str] = Header(None)):
return {"paid": True, "preimage": payment.preimage, "details": payment}
return {"paid": True, "preimage": payment.preimage}
if payment.failed:
return {"paid": False, "status": "failed", "details": payment}
try:
status = await payment.check_status()
except Exception: