]> git.bitcoin.ninja Git - rust-lightning/commit
Generate PaymentPathSuccessful event for each path
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 18 Nov 2021 22:24:14 +0000 (16:24 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 23 Nov 2021 19:29:45 +0000 (13:29 -0600)
commit2c4f16d5e39e6d4e90d1b9836cceaad11810fbaa
tree9bca6eda1d59da57de0acd9f928af8f2f5d987b8
parent8d886ee92439fdda911fd43887cd7e39d1b41c75
Generate PaymentPathSuccessful event for each path

A single PaymentSent event is generated when a payment is fulfilled.
This is occurs when the preimage is revealed on the first claimed HTLC.
For subsequent HTLCs, the event is not generated.

In order to score channels involved with a successful payments, the
scorer must be notified of each successful path involved in the payment.
Add a PaymentPathSuccessful event for this purpose. Generate it whenever
a part is removed from a pending outbound payment. This avoids duplicate
events when reconnecting to a peer.
fuzz/src/chanmon_consistency.rs
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/monitor_tests.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/payment_tests.rs
lightning/src/ln/shutdown_tests.rs
lightning/src/util/events.rs