]> git.bitcoin.ninja Git - rust-lightning/commit
MessageRouter trait for OnionMessenger
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 23 Feb 2023 04:22:42 +0000 (22:22 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 13 Jun 2023 18:07:47 +0000 (13:07 -0500)
commita71000f35dd23949d26fffd421d6f6478f0cd6b5
tree043d9023ed4482ccb82df40ad2baf03ad1e4cff8
parentf15da3d294414b9948938ebeb0e64d2df44f90b9
MessageRouter trait for OnionMessenger

Add a trait for finding routes for onion messages and parameterize
OnionMessenger with it. This allows OnionMessenger to reply to messages
that it handles via one of its handlers (e.g., OffersMessageHandler).
fuzz/src/onion_message.rs
lightning-background-processor/src/lib.rs
lightning/src/ln/peer_handler.rs
lightning/src/onion_message/functional_tests.rs
lightning/src/onion_message/messenger.rs
lightning/src/onion_message/mod.rs