From 6cd740308644090138c31ffb2383b4e2a3a6e329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Wed, 26 Feb 2025 12:53:04 +0100 Subject: [PATCH] feat: pass previous memo through now the memo of the payment has this form `{memo;memo_parent_payment;payment_hash_parent_payhment} --- tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 9059634..c51b90a 100644 --- a/tasks.py +++ b/tasks.py @@ -46,7 +46,9 @@ async def on_invoice_paid(payment: Payment) -> None: if target.percent > 0: amount_msat = int(payment.amount * target.percent / 100) memo = ( - f"Split payment: {target.percent}% for {target.alias or target.wallet}" + f"Split payment: {target.percent}% " + f"for {target.alias or target.wallet}" + f";{payment.memo};{payment.payment_hash}" ) if "@" in target.wallet or "LNURL" in target.wallet: