Generalize respond_with_onion_message
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 13 Sep 2023 19:13:05 +0000 (14:13 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 18 Oct 2023 22:09:27 +0000 (17:09 -0500)
commit81c6147a9ec573abbf5b0cbe434e86626cc37112
tree5979b73c1467d67dd6e2fd71b27ba48b391ebb01
parentcfe6b952a8a00bd32dda985144b8b8060bb00c6a
Generalize respond_with_onion_message

OnionMessenger can send onion message responses from its handlers using
respond_with_onion_message, which finds a path to the destination and
enqueues the response for sending. Generalize this as it can be used not
only for responses but for initial sends as well.
fuzz/src/onion_message.rs
lightning/src/onion_message/messenger.rs