projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add FailureCode enum and ChannelManager::fail_htlc_backwards_with_reason
[rust-lightning]
/
lightning
/
src
/
offers
/
payer.rs
diff --git
a/lightning/src/offers/payer.rs
b/lightning/src/offers/payer.rs
index 1705be85ed8f53bb316154f81edacbd9f2f391ab..e389a8f6d5d5daf36dd8e8c3b259c59438472b95 100644
(file)
--- a/
lightning/src/offers/payer.rs
+++ b/
lightning/src/offers/payer.rs
@@
-9,6
+9,8
@@
//! Data structures and encoding for `invoice_request_metadata` records.
//! Data structures and encoding for `invoice_request_metadata` records.
+use crate::util::ser::WithoutLength;
+
use crate::prelude::*;
/// An unpredictable sequence of bytes typically containing information needed to derive
use crate::prelude::*;
/// An unpredictable sequence of bytes typically containing information needed to derive
@@
-16,4
+18,8
@@
use crate::prelude::*;
///
/// [`InvoiceRequest::payer_id`]: crate::offers::invoice_request::InvoiceRequest::payer_id
#[derive(Clone, Debug)]
///
/// [`InvoiceRequest::payer_id`]: crate::offers::invoice_request::InvoiceRequest::payer_id
#[derive(Clone, Debug)]
-pub(crate) struct PayerContents(pub Vec<u8>);
+pub(super) struct PayerContents(pub Vec<u8>);
+
+tlv_stream!(PayerTlvStream, PayerTlvStreamRef, 0..1, {
+ (0, metadata: (Vec<u8>, WithoutLength)),
+});