Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lightning/src/ln/onion_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ where
logger,
"Htlc hold time at pos {}: {} ms",
route_hop_idx,
hold_time * HOLD_TIME_UNIT_MILLIS as u32
(hold_time as u128) * HOLD_TIME_UNIT_MILLIS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed this would make an overflow highly unlikely, but saturating_mul would actually make it impossible. Doesn't matter much, as it's just in logging anyways.

);

// Shift attribution data to prepare for processing the next hop.
Expand Down
Loading