Merge branch 'master' into is_on_main_chain_public2

This commit is contained in:
Tamás Blummer 2018-03-09 16:03:06 +01:00 committed by GitHub
commit e530aa98c9
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 { impl RawNetworkMessage {
fn command(&self) -> String { /// Return the message command. This is useful for debug outputs.
pub fn command(&self) -> String {
match self.payload { match self.payload {
NetworkMessage::Version(_) => "version", NetworkMessage::Version(_) => "version",
NetworkMessage::Verack => "verack", NetworkMessage::Verack => "verack",