]> git.bitcoin.ninja Git - rust-lightning/commit
Look up node id from scid in OnionMessenger
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 20 Mar 2024 19:31:30 +0000 (14:31 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 15 Apr 2024 15:58:30 +0000 (10:58 -0500)
commit9f1ffab24c4870d0f9846d75a693f2a784648a60
treee6e23381591d4b6dd6e606a465785dbee0dee5ef
parent32a5139eb599f6ff565f4422e4da6e9421d74094
Look up node id from scid in OnionMessenger

When forwarding onion messages, the next node may be represented by a
short channel id instead of a node id. Parameterize OnionMessenger with
a NodeIdLookUp trait to find which node is the next hop. Implement the
trait for ChannelManager for forwarding to channel counterparties.

Also use this trait when advancing a blinded path one hop when the
sender is the introduction node.
fuzz/src/onion_message.rs
lightning/src/blinded_path/message.rs
lightning/src/blinded_path/mod.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/onion_message/functional_tests.rs
lightning/src/onion_message/messenger.rs