projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drop `vec_type` TLV handling entirely
[rust-lightning]
/
lightning
/
src
/
onion_message
/
packet.rs
diff --git
a/lightning/src/onion_message/packet.rs
b/lightning/src/onion_message/packet.rs
index 1c3595c3712526191e0e5f1707dfa51d82ca7505..8a5628f164ca358dd8df1d7aec5e58730247c67e 100644
(file)
--- a/
lightning/src/onion_message/packet.rs
+++ b/
lightning/src/onion_message/packet.rs
@@
-169,7
+169,7
@@
impl<T: CustomOnionMessageContents> Writeable for (Payload<T>, [u8; 32]) {
match &self.0 {
Payload::Forward(ForwardControlTlvs::Blinded(encrypted_bytes)) => {
_encode_varint_length_prefixed_tlv!(w, {
match &self.0 {
Payload::Forward(ForwardControlTlvs::Blinded(encrypted_bytes)) => {
_encode_varint_length_prefixed_tlv!(w, {
- (4, *encrypted_bytes,
vec_type
)
+ (4, *encrypted_bytes,
required_vec
)
})
},
Payload::Receive {
})
},
Payload::Receive {
@@
-177,7
+177,7
@@
impl<T: CustomOnionMessageContents> Writeable for (Payload<T>, [u8; 32]) {
} => {
_encode_varint_length_prefixed_tlv!(w, {
(2, reply_path, option),
} => {
_encode_varint_length_prefixed_tlv!(w, {
(2, reply_path, option),
- (4, *encrypted_bytes,
vec_type
),
+ (4, *encrypted_bytes,
required_vec
),
(message.tlv_type(), message, required)
})
},
(message.tlv_type(), message, required)
})
},