Skip to content

Commit

Permalink
Parse 'addr' messages as well
Browse files Browse the repository at this point in the history
Following 3965a3b.
  • Loading branch information
romanz committed Oct 30, 2021
1 parent 54e4d17 commit 44bc27d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/p2p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ impl RawNetworkMessage {
"pong" => NetworkMessage::Pong(Decodable::consensus_decode(&mut raw)?),
"reject" => NetworkMessage::Reject(Decodable::consensus_decode(&mut raw)?),
"alert" => NetworkMessage::Alert(Decodable::consensus_decode(&mut raw)?),
"addr" => NetworkMessage::Addr(Decodable::consensus_decode(&mut raw)?),
_ => NetworkMessage::Unknown {
command: self.cmd,
payload: self.raw,
Expand Down

0 comments on commit 44bc27d

Please sign in to comment.