Skip to content

Commit 8501acf

Browse files
committed
remove comments
1 parent 4d51a4f commit 8501acf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/onion_utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,11 +1128,11 @@ where
11281128
log_debug!(logger, "Htlc hold time at pos {}: {} ms", route_hop_idx, hold_time);
11291129

11301130
// Shift payloads left.
1131-
let payloads = &mut encrypted_packet.attribution_data.as_mut().unwrap()[..MAX_HOPS * PAYLOAD_LEN]; // XXX: This will break if we get an err from an unupgraded node
1131+
let payloads = &mut encrypted_packet.attribution_data.as_mut().unwrap()[..MAX_HOPS * PAYLOAD_LEN];
11321132
payloads.copy_within(PAYLOAD_LEN.., 0);
11331133

11341134
// Shift hmacs left.
1135-
let hmacs = &mut encrypted_packet.attribution_data.as_mut().unwrap()[MAX_HOPS * PAYLOAD_LEN..]; // XXX: This will break if we get an err from an unupgraded node
1135+
let hmacs = &mut encrypted_packet.attribution_data.as_mut().unwrap()[MAX_HOPS * PAYLOAD_LEN..];
11361136
let mut src_idx = MAX_HOPS;
11371137
let mut dest_idx = 1;
11381138
let mut copy_len = MAX_HOPS - 1;

0 commit comments

Comments
 (0)