From: Matt Corallo Date: Fri, 16 Jul 2021 02:16:50 +0000 (+0000) Subject: Generate a PaymentForwarded event when a forwarded HTLC is claimed X-Git-Tag: v0.0.100~10^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=2024c5e1049ef399fb24e5c466924f980e949c69;hp=2024c5e1049ef399fb24e5c466924f980e949c69;p=rust-lightning Generate a PaymentForwarded event when a forwarded HTLC is claimed It is useful for accounting and informational reasons for users to be informed when a payment has been successfully forwarded. Thus, when an HTLC which represents a forwarded leg is claimed, we generate a new `PaymentForwarded` event. This requires some additional plumbing to return HTLC values from `OnchainEvent`s. Further, when we have to go on-chain to claim the inbound side of the payment, we do not inform the user of the fee reward, as we cannot calculate it until we see what is confirmed on-chain. Substantial code structure rewrites by: Valentine Wallace ---