projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set user_channel_id in accept_inbound_channel fn
[rust-lightning]
/
lightning
/
src
/
ln
/
msgs.rs
diff --git
a/lightning/src/ln/msgs.rs
b/lightning/src/ln/msgs.rs
index 132e6c203bb4cc360f2687cf7b3a576b7edc8ab0..ef07d4c918f8597f28a6b3df90aeaded15b06bb9 100644
(file)
--- 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,
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
/// 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 conta
ing the new address.
+
/// that for a node_announcement update message contain
ing the new address.
pub remote_network_address: Option<NetAddress>,
}
pub remote_network_address: Option<NetAddress>,
}
@@
-2479,9
+2479,9
@@
mod tests {
}),
};
let encoded_value = init_msg.encode();
}),
};
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!(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]
}
#[test]