Merge branch 'master' into get_tip_height
This commit is contained in:
commit
ab72eabd59
|
@ -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