PeerAddress: Fix a constructor was hardcoded to the mainnet port.

This commit is contained in:
Andreas Schildbach
2017-03-01 12:29:57 +01:00
parent 2c546c357e
commit f896205a87

View File

@@ -107,7 +107,7 @@ public class PeerAddress extends ChildMessage {
* Bitcoin mainnet, version number is default for the given parameters.
*/
public PeerAddress(NetworkParameters params, InetAddress addr) {
this(params, addr, MainNetParams.get().getPort());
this(params, addr, params.getPort());
}
/**