We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a93f98 commit f5e3a3eCopy full SHA for f5e3a3e
src/ln/msgs.rs
@@ -681,10 +681,11 @@ impl MsgDecodable for OpenChannel {
681
}
682
shutdown_scriptpubkey = Some(Script::from(v[321..321+len].to_vec()));
683
684
-
+ let mut temp_channel_id = [0; 32];
685
+ temp_channel_id[..].copy_from_slice(&v[32..64]);
686
Ok(OpenChannel {
687
chain_hash: deserialize(&v[0..32]).unwrap(),
- temporary_channel_id: deserialize(&v[32..64]).unwrap(),
688
+ temporary_channel_id: temp_channel_id,
689
funding_satoshis: byte_utils::slice_to_be64(&v[64..72]),
690
push_msat: byte_utils::slice_to_be64(&v[72..80]),
691
dust_limit_satoshis: byte_utils::slice_to_be64(&v[80..88]),
0 commit comments