RawNetworkMessage::command should be public. no harm and useful for debug messages.
This commit is contained in:
parent
279e6dec28
commit
f1503866d7
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue