projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1839 from ariard/2022-11-increase-visibility-helpers
[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 73f58036c865c4c18f12a8cd3dd7191328ebaa87..8fff53642e128682638ec187eab0c8a31afca260 100644
(file)
--- a/
lightning/src/onion_message/packet.rs
+++ b/
lightning/src/onion_message/packet.rs
@@
-164,7
+164,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, vec_type)
})
},
Payload::Receive {
})
},
Payload::Receive {
@@
-172,7
+172,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, vec_type),
(message.tlv_type(), message, required)
})
},
(message.tlv_type(), message, required)
})
},