Skip to content

Commit

Permalink
PeerAddress: simplify dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehearn committed Oct 8, 2015
1 parent f9c6ded commit 979d209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/bitcoinj/core/PeerAddress.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public PeerAddress(InetSocketAddress addr) {
this.port = addr.getPort();
this.protocolVersion = NetworkParameters.PROTOCOL_VERSION;
this.services = BigInteger.ZERO;
length = protocolVersion > 31402 ? MESSAGE_SIZE : MESSAGE_SIZE - 4;
length = MESSAGE_SIZE;
}

public static PeerAddress localhost(NetworkParameters params) {
Expand Down

0 comments on commit 979d209

Please sign in to comment.