X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fln%2Fpeer_handler.rs;h=3949b97e0d03019a5f79ad4f293d0d450a9d970a;hb=ae15ba84620f40ed5c80870d254d5eda341f1aba;hp=4c2e68d9a43993a021c5a0bc796b548aed1a649e;hpb=04b16e74d553a64d41669f1c82f33431b1080a28;p=rust-lightning diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index 4c2e68d9..3949b97e 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -922,7 +922,7 @@ impl InitFeatures { @@ -2676,7 +2676,7 @@ mod tests { for i in 0..peer_count { let node_secret = SecretKey::from_slice(&[42 + i as u8; 32]).unwrap(); let features = InitFeatures::from_le_bytes(vec![0u8; 33]); - let network = ChainHash::from(&[i as u8; 32][..]); + let network = ChainHash::from(&[i as u8; 32]); cfgs.push( PeerManagerCfg{ chan_handler: test_utils::TestChannelMessageHandler::new(network), @@ -2789,7 +2789,7 @@ mod tests { node_id: peers[1].node_signer.get_node_id(Recipient::Node).unwrap(), msg: msgs::Shutdown { channel_id: ChannelId::new_zero(), - scriptpubkey: bitcoin::Script::new(), + scriptpubkey: bitcoin::ScriptBuf::new(), }, }); cfgs[1].chan_handler.pending_events.lock().unwrap() @@ -2797,7 +2797,7 @@ mod tests { node_id: peers[0].node_signer.get_node_id(Recipient::Node).unwrap(), msg: msgs::Shutdown { channel_id: ChannelId::new_zero(), - scriptpubkey: bitcoin::Script::new(), + scriptpubkey: bitcoin::ScriptBuf::new(), }, }); @@ -2925,7 +2925,7 @@ mod tests { let their_id = peers[1].node_signer.get_node_id(Recipient::Node).unwrap(); - let msg = msgs::Shutdown { channel_id: ChannelId::from_bytes([42; 32]), scriptpubkey: bitcoin::Script::new() }; + let msg = msgs::Shutdown { channel_id: ChannelId::from_bytes([42; 32]), scriptpubkey: bitcoin::ScriptBuf::new() }; a_chan_handler.pending_events.lock().unwrap().push(events::MessageSendEvent::SendShutdown { node_id: their_id, msg: msg.clone() });