]> git.bitcoin.ninja Git - rust-lightning/commit
Use BOLT 12 PaymentPurpose variants
authorJeffrey Czyz <jkczyz@gmail.com>
Sat, 13 Apr 2024 23:20:19 +0000 (18:20 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 18 Apr 2024 14:15:23 +0000 (09:15 -0500)
commit0c52ea23dc6adfb9189f776449e78c828fa5d1f4
tree4d196827a649e05e9667aec321347fc28f9364b6
parent54ca54d1917ce5fea627f9144bcacb9cdca4c095
Use BOLT 12 PaymentPurpose variants

When constructing a PaymentPurpose in ChannelManager, use the
PaymentContext from OnionPayload to determine which variant to
construct, including those for BOLT 12 payments.
lightning/src/events/mod.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/offers_tests.rs