Merge branch 'master' into get_tip_height

This commit is contained in:
Andrew Poelstra 2018-03-09 15:01:15 +00:00 committed by GitHub
commit ab72eabd59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,8 @@ pub enum NetworkMessage {
}
impl RawNetworkMessage {
fn command(&self) -> String {
/// Return the message command. This is useful for debug outputs.
pub fn command(&self) -> String {
match self.payload {
NetworkMessage::Version(_) => "version",
NetworkMessage::Verack => "verack",