Destination in OnionMessenger::send_onion_message
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 15 Nov 2023 23:26:45 +0000 (17:26 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 6 Dec 2023 14:47:18 +0000 (08:47 -0600)
commit8412e8368c670176fbcac7e6fa1a98a3916972e6
tree711da08ca44952bb870664a6e8e47fbb79762527
parent79f212b70a174d52cd6016d3c608e5ed9e68069b
Destination in OnionMessenger::send_onion_message

OnionMessenger::send_onion_message takes an OnionMessagePath. This isn't
very useful as it requires finding a path manually. Instead, have the
method take a Destination and use OnionMessenger's MessageRouter to
construct the path. Later, this will allow for buffering messages where
the first node in the path isn't a direct connection.
fuzz/src/onion_message.rs
lightning/src/onion_message/functional_tests.rs
lightning/src/onion_message/messenger.rs