Skip to content

Commit

Permalink
RawNetworkMessage::command should be public. no harm and useful for d…
Browse files Browse the repository at this point in the history
…ebug messages.
  • Loading branch information
tamasblummer committed Feb 28, 2018
1 parent 279e6de commit f150386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f150386

Please sign in to comment.