Skip to content

Commit 64e5dc4

Browse files
committed
Fromat moved code in channel_state.rs
1 parent dff697d commit 64e5dc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channel_state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,8 @@ impl Readable for ChannelDetails {
637637
// `user_channel_id` used to be a single u64 value. In order to remain backwards compatible with
638638
// versions prior to 0.0.113, the u128 is serialized as two separate u64 values.
639639
let user_channel_id_low: u64 = user_channel_id_low.0.unwrap();
640-
let user_channel_id = user_channel_id_low as u128 +
641-
((user_channel_id_high_opt.unwrap_or(0 as u64) as u128) << 64);
640+
let user_channel_id = user_channel_id_low as u128
641+
+ ((user_channel_id_high_opt.unwrap_or(0 as u64) as u128) << 64);
642642

643643
Ok(Self {
644644
inbound_scid_alias,

0 commit comments

Comments
 (0)