We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfdfb9d commit 4c297c9Copy full SHA for 4c297c9
lightning/src/onion_message/messenger.rs
@@ -325,12 +325,18 @@ impl OnionMessageRecipient {
325
326
/// The `Responder` struct creates an appropriate [`ResponseInstruction`]
327
/// for responding to a message.
328
+#[derive(Clone, Debug, Eq, PartialEq)]
329
pub struct Responder {
330
/// The path along which a response can be sent.
331
reply_path: BlindedPath,
332
path_id: Option<[u8; 32]>
333
}
334
335
+impl_writeable_tlv_based!(Responder, {
336
+ (0, reply_path, required),
337
+ (2, path_id, option),
338
+});
339
+
340
impl Responder {
341
/// Creates a new [`Responder`] instance with the provided reply path.
342
pub(super) fn new(reply_path: BlindedPath, path_id: Option<[u8; 32]>) -> Self {
0 commit comments