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 a7c4732 commit 9e46350Copy full SHA for 9e46350
lightning/src/onion_message/messenger.rs
@@ -252,12 +252,18 @@ impl OnionMessageRecipient {
252
253
/// The `Responder` struct creates an appropriate [`ResponseInstruction`]
254
/// for responding to a message.
255
+#[derive(Clone, Debug, Eq, PartialEq)]
256
pub struct Responder {
257
/// The path along which a response can be sent.
258
reply_path: BlindedPath,
259
path_id: Option<[u8; 32]>
260
}
261
262
+impl_writeable_tlv_based!(Responder, {
263
+ (0, reply_path, required),
264
+ (2, path_id, option),
265
+});
266
+
267
impl Responder {
268
/// Creates a new [`Responder`] instance with the provided reply path.
269
fn new(reply_path: BlindedPath, path_id: Option<[u8; 32]>) -> Self {
0 commit comments