Skip to content

Commit

Permalink
Ignore 'addr' p2p messages
Browse files Browse the repository at this point in the history
Fixes #596.
  • Loading branch information
romanz committed Oct 25, 2021
1 parent cdea505 commit 3965a3b
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 @@ -258,6 +258,7 @@ impl Connection {
NetworkMessage::Block(block) => blocks_send.send(block)?,
NetworkMessage::Headers(headers) => headers_send.send(headers)?,
NetworkMessage::Alert(_) => (), // https://bitcoin.org/en/alert/2016-11-01-alert-retirement
NetworkMessage::Addr(_) => (), // unused
msg => warn!("unexpected message: {:?}", msg),
}
}
Expand Down

0 comments on commit 3965a3b

Please sign in to comment.