Skip to content

Commit

Permalink
Merge pull request #29 from oscarguindzberg/addr-msg
Browse files Browse the repository at this point in the history
Add comment explaining "addr" message handling.
  • Loading branch information
ManfredKarrer authored Mar 27, 2019
2 parents 3117a67 + 1a799f6 commit 00298b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/org/bitcoinj/core/PeerGroup.java
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ public void onPeerDisconnected(Peer peer, int peerCount) {

@Override
public Message onPreMessageReceived(Peer peer, Message m) {
// See https://github.com/bisq-network/bitcoinj/issues/28 for more info on addr msg handling
if (m instanceof AddressMessage && addPeersFromAddressMessage) {
for( PeerAddress peerAddress : ((AddressMessage)m).getAddresses() ) {
addInactive(peerAddress);
Expand Down

0 comments on commit 00298b1

Please sign in to comment.