Merge pull request #49 from tamasblummer/public_command
[Trivial] RawNetworkMessage::command should be public.
This commit is contained in:
commit
c92ede0cc5
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue