diff --git a/src/network/message.rs b/src/network/message.rs index 69ec7864..8a177c7c 100644 --- a/src/network/message.rs +++ b/src/network/message.rs @@ -123,7 +123,7 @@ pub enum NetworkMessage { } impl RawNetworkMessage { - fn command(&self) -> String { + pub fn command(&self) -> String { match self.payload { NetworkMessage::Version(_) => "version", NetworkMessage::Verack => "verack",