Resolve blinded path when creating onion message
authorJeffrey Czyz <jkczyz@gmail.com>
Sun, 7 Apr 2024 19:10:29 +0000 (21:10 +0200)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 15 Apr 2024 15:59:03 +0000 (10:59 -0500)
commitb7f73fa18866324017406dd7003b2dde86108d16
treeb1f7e55227fc9924c13c21f8fffe4feed53fdb28
parent3f90d77122edd1d7cc6fc484b2fa55353c524dcb
Resolve blinded path when creating onion message

Add a version of the create_onion_message utility function that attempts
to resolved the introduction node of the destination's BlindedPath using
a ReadOnlyNetworkGraph`. Otherwise, if given a path using the compact
representation, using create_onion_message would fail. Keep the current
version for use internally and for external uses where the blinded path
is known to be resolved.
lightning/src/onion_message/messenger.rs