mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
Fromat moved code in channel_state.rs
This commit is contained in:
parent
dff697d1a5
commit
64e5dc4933
1 changed files with 2 additions and 2 deletions
|
@ -637,8 +637,8 @@ impl Readable for ChannelDetails {
|
||||||
// `user_channel_id` used to be a single u64 value. In order to remain backwards compatible with
|
// `user_channel_id` used to be a single u64 value. In order to remain backwards compatible with
|
||||||
// versions prior to 0.0.113, the u128 is serialized as two separate u64 values.
|
// versions prior to 0.0.113, the u128 is serialized as two separate u64 values.
|
||||||
let user_channel_id_low: u64 = user_channel_id_low.0.unwrap();
|
let user_channel_id_low: u64 = user_channel_id_low.0.unwrap();
|
||||||
let user_channel_id = user_channel_id_low as u128 +
|
let user_channel_id = user_channel_id_low as u128
|
||||||
((user_channel_id_high_opt.unwrap_or(0 as u64) as u128) << 64);
|
+ ((user_channel_id_high_opt.unwrap_or(0 as u64) as u128) << 64);
|
||||||
|
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
inbound_scid_alias,
|
inbound_scid_alias,
|
||||||
|
|
Loading…
Add table
Reference in a new issue