Skip to content

Commit cc10483

Browse files
committed
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.
1 parent 6771d84 commit cc10483

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/onion_message/messenger.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,11 @@ impl Responder {
413413
Responder { reply_path }
414414
}
415415

416+
/// Returns the reply path for this [`Responder`].
417+
pub fn reply_path(&self) -> BlindedMessagePath {
418+
self.reply_path.clone()
419+
}
420+
416421
/// Creates a [`ResponseInstruction`] for responding without including a reply path.
417422
///
418423
/// Use when the recipient doesn't need to send back a reply to us.

0 commit comments

Comments
 (0)