]> git.bitcoin.ninja Git - rust-lightning/commit
BOLT 12 variants of PaymentPurpose
authorJeffrey Czyz <jkczyz@gmail.com>
Sat, 13 Apr 2024 22:29:24 +0000 (17:29 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 18 Apr 2024 14:15:22 +0000 (09:15 -0500)
commit54ca54d1917ce5fea627f9144bcacb9cdca4c095
tree352fcc3185b8da120feffbe05cfc708e3d0ea68a
parentef3ec8f146d2a6e9c750113ac8ce5af310fcef34
BOLT 12 variants of PaymentPurpose

In order to provide more context in PaymentClaimable and PaymentClaimed
events, introduce new variants of PaymentPurpose for use with BOLT 12
payments. Separate variants are used for offers and refunds. An unknown
variant is used for backwards compatibility and ease of testing, but is
otherwise not publicly constructable.
lightning/src/blinded_path/payment.rs
lightning/src/events/mod.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs