From 4256944d5d43278baabc043d09f6300fc801afab Mon Sep 17 00:00:00 2001 From: Maurice Poirrier Chuden Date: Wed, 2 Jul 2025 10:40:00 -0700 Subject: [PATCH] Expose `reply_path` from `Responder` in onion messenger Add public `reply_path()` method to allow external process or implementation to access the introduction node information before responding the onion message. --- lightning/src/onion_message/messenger.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lightning/src/onion_message/messenger.rs b/lightning/src/onion_message/messenger.rs index 3b2566119de..8059f956357 100644 --- a/lightning/src/onion_message/messenger.rs +++ b/lightning/src/onion_message/messenger.rs @@ -413,6 +413,11 @@ impl Responder { Responder { reply_path } } + /// Returns the reply path for this [`Responder`]. + pub fn reply_path(&self) -> &BlindedMessagePath { + &self.reply_path + } + /// Creates a [`ResponseInstruction`] for responding without including a reply path. /// /// Use when the recipient doesn't need to send back a reply to us.