Skip to content

Commit 1a7afc6

Browse files
committed
f move
1 parent dabae73 commit 1a7afc6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lightning/src/ln/onion_utils.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@ impl HTLCFailReason {
639639
Self::LightningError { err: msg.reason.clone() }
640640
}
641641

642-
pub(super) fn get_encrypted_failure_packet(&self, incoming_packet_shared_secret: &[u8; 32], phantom_shared_secret: &Option<[u8; 32]>) -> msgs::OnionErrorPacket {
642+
pub(super) fn get_encrypted_failure_packet(&self, incoming_packet_shared_secret: &[u8; 32], phantom_shared_secret: &Option<[u8; 32]>)
643+
-> msgs::OnionErrorPacket {
643644
match self {
644645
HTLCFailReason::Reason { ref failure_code, ref data } => {
645646
if let Some(phantom_ss) = phantom_shared_secret {
@@ -657,7 +658,10 @@ impl HTLCFailReason {
657658
}
658659
}
659660

660-
pub(super) fn decode_onion_failure<T: secp256k1::Signing, L: Deref>(&self, secp_ctx: &Secp256k1<T>, logger: &L, htlc_source: &HTLCSource) -> (Option<crate::routing::gossip::NetworkUpdate>, Option<u64>, bool, Option<u16>, Option<Vec<u8>>) where L::Target: Logger {
661+
pub(super) fn decode_onion_failure<T: secp256k1::Signing, L: Deref>(
662+
&self, secp_ctx: &Secp256k1<T>, logger: &L, htlc_source: &HTLCSource
663+
) -> (Option<crate::routing::gossip::NetworkUpdate>, Option<u64>, bool, Option<u16>, Option<Vec<u8>>)
664+
where L::Target: Logger {
661665
match self {
662666
HTLCFailReason::LightningError { ref err } => {
663667
process_onion_failure(secp_ctx, logger, &htlc_source, err.data.clone())

0 commit comments

Comments
 (0)