]> git.bitcoin.ninja Git - rust-lightning/commit
Compact a BlindedPath's introduction node
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 10 Apr 2024 21:04:19 +0000 (16:04 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 28 May 2024 21:35:56 +0000 (16:35 -0500)
commit0a6886ee38cfd906f984d7b8f444cb8621fce4fd
tree3b010649d4daca8236125716c59aef6a551851c1
parent4956ade170f112881f3454dacc95f90b64e6aad3
Compact a BlindedPath's introduction node

Add a method to BlindedPath that given a network graph will compact the
IntroductionNode as the DirectedShortChannelId variant. Call this method
from DefaultMessageRouter so that Offer paths use the compact
representation (along with reply paths). This leaves payment paths in
Bolt12Invoice using the NodeId variant, as the compact representation
isn't as useful there.
lightning/src/blinded_path/mod.rs
lightning/src/ln/offers_tests.rs
lightning/src/onion_message/messenger.rs