RawNetworkMessage::command should be public. no harm and useful for debug messages.

This commit is contained in:
Tamas Blummer 2018-02-28 10:42:23 +01:00
parent 279e6dec28
commit f1503866d7
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ pub enum NetworkMessage {
} }
impl RawNetworkMessage { impl RawNetworkMessage {
fn command(&self) -> String { pub fn command(&self) -> String {
match self.payload { match self.payload {
NetworkMessage::Version(_) => "version", NetworkMessage::Version(_) => "version",
NetworkMessage::Verack => "verack", NetworkMessage::Verack => "verack",