Skip to content

Commit 4e2ebb7

Browse files
authored
feat: pass previous memo through (#31)
now the memo of the payment has this form `{memo;memo_parent_payment;payment_hash_parent_payment}
1 parent 0bf1557 commit 4e2ebb7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tasks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ async def on_invoice_paid(payment: Payment) -> None:
4646
if target.percent > 0:
4747
amount_msat = int(payment.amount * target.percent / 100)
4848
memo = (
49-
f"Split payment: {target.percent}% for {target.alias or target.wallet}"
49+
f"Split payment: {target.percent}% "
50+
f"for {target.alias or target.wallet}"
51+
f";{payment.memo};{payment.payment_hash}"
5052
)
5153

5254
if "@" in target.wallet or "LNURL" in target.wallet:

0 commit comments

Comments
 (0)