feat: pass previous memo through (#31)

now the memo of the payment has this form
`{memo;memo_parent_payment;payment_hash_parent_payment}
This commit is contained in:
dni ⚡ 2025-02-26 12:56:31 +01:00 committed by GitHub
commit 4e2ebb7944
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,7 +46,9 @@ async def on_invoice_paid(payment: Payment) -> None:
if target.percent > 0: if target.percent > 0:
amount_msat = int(payment.amount * target.percent / 100) amount_msat = int(payment.amount * target.percent / 100)
memo = ( 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: if "@" in target.wallet or "LNURL" in target.wallet: