X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fln%2Fmsgs.rs;h=ef07d4c918f8597f28a6b3df90aeaded15b06bb9;hb=e49f738630559ce2eaa97689f1b4d37546fc7020;hp=132e6c203bb4cc360f2687cf7b3a576b7edc8ab0;hpb=20a81e5c1484dfef0cdf636438889344052cb2b1;p=rust-lightning diff --git a/lightning/src/ln/msgs.rs b/lightning/src/ln/msgs.rs index 132e6c20..ef07d4c9 100644 --- a/lightning/src/ln/msgs.rs +++ b/lightning/src/ln/msgs.rs @@ -75,10 +75,10 @@ pub enum DecodeError { pub struct Init { /// The relevant features which the sender supports pub features: InitFeatures, - /// The receipient's network address. This adds the option to report a remote IP address + /// The receipient's network address. This adds the option to report a remote IP address /// back to a connecting peer using the init message. A node can decide to use that information /// to discover a potential update to its public IPv4 address (NAT) and use - /// that for a node_announcement update message containg the new address. + /// that for a node_announcement update message containing the new address. pub remote_network_address: Option, } @@ -2479,9 +2479,9 @@ mod tests { }), }; let encoded_value = init_msg.encode(); - let target_value = hex::decode("000000000307017f00000103e8").unwrap(); + let target_value = hex::decode("000000000307017f00000103e8").unwrap(); assert_eq!(encoded_value, target_value); - assert_eq!(msgs::Init::read(&mut Cursor::new(&target_value)).unwrap(),init_msg); + assert_eq!(msgs::Init::read(&mut Cursor::new(&target_value)).unwrap(), init_msg); } #[test]