projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add missing test coverage for bogus err packet with valid hmac
[rust-lightning]
/
lightning
/
src
/
ln
/
channelmanager.rs
diff --git
a/lightning/src/ln/channelmanager.rs
b/lightning/src/ln/channelmanager.rs
index 961f25cc664ad3425d39dcf5e099b66c44eb4949..5c2d392ba2fcdd8540feb0f79a07e0631f87573f 100644
(file)
--- a/
lightning/src/ln/channelmanager.rs
+++ b/
lightning/src/ln/channelmanager.rs
@@
-2868,9
+2868,9
@@
where
short_channel_id, amt_to_forward, outgoing_cltv_value
}, ..
} => {
short_channel_id, amt_to_forward, outgoing_cltv_value
}, ..
} => {
- let next_p
k = onion_utils::next_hop_packet
_pubkey(&self.secp_ctx,
+ let next_p
acket_pk = onion_utils::next_hop
_pubkey(&self.secp_ctx,
msg.onion_routing_packet.public_key.unwrap(), &shared_secret);
msg.onion_routing_packet.public_key.unwrap(), &shared_secret);
- (short_channel_id, amt_to_forward, outgoing_cltv_value, Some(next_pk))
+ (short_channel_id, amt_to_forward, outgoing_cltv_value, Some(next_p
acket_p
k))
},
// We'll do receive checks in [`Self::construct_pending_htlc_info`] so we have access to the
// inbound channel's state.
},
// We'll do receive checks in [`Self::construct_pending_htlc_info`] so we have access to the
// inbound channel's state.