]> git.bitcoin.ninja Git - rust-lightning/commit
Replace use of OffersContext::Unknown with None
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 23 Jul 2024 23:24:43 +0000 (18:24 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 30 Jul 2024 21:06:25 +0000 (16:06 -0500)
commit88343366ca04085904ee0ac41d5a10a86d933a35
treefdecefc3fa84447ce29fa40c3a6c9df4a36275fe
parentd2c22d58cee0c0d0fcfe657f82cb4bb647d56288
Replace use of OffersContext::Unknown with None

Now that ChannelManager uses a known OffersContext when creating blinded
paths, OffersContext::Unknown is no longer needed. Remove it and update
OffersMessageHandler to us an Option, which is more idiomatic for
signifying whether a message was delivered with or without an
OffersContext.
fuzz/src/onion_message.rs
lightning/src/blinded_path/message.rs
lightning/src/events/mod.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/offers_tests.rs
lightning/src/ln/peer_handler.rs
lightning/src/onion_message/functional_tests.rs
lightning/src/onion_message/messenger.rs
lightning/src/onion_message/offers.rs