[fix] limit the size of the invoice description to 640 characters (#3045)

This commit is contained in:
Vlad Stan
2025-03-12 16:29:29 +02:00
committed by GitHub
parent 475ae5736e
commit b8a5f3942c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ async def create_invoice(
if not user_wallet:
raise InvoiceError(f"Could not fetch wallet '{wallet_id}'.", status="failed")
invoice_memo = None if description_hash else memo
invoice_memo = None if description_hash else memo[:640]
# use the fake wallet if the invoice is for internal use only
funding_source = fake_wallet if internal else get_funding_source()