3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 23:32:16 +00:00

Re-enable port selection as pull-tester will need it

This commit is contained in:
Matt Corallo 2013-05-19 12:29:21 +02:00
parent a1c1a1117a
commit e8ea5cea7c

View File

@ -52,7 +52,7 @@ public class BitcoindComparisonTool {
public static void main(String[] args) throws Exception {
BriefLogFormatter.init();
System.out.println("USAGE: bitcoinjBlockStoreLocation runLargeReorgs(1/0)");
System.out.println("USAGE: bitcoinjBlockStoreLocation runLargeReorgs(1/0) [port=18444]");
boolean runLargeReorgs = Integer.parseInt(args[1]) == 1;
params = NetworkParameters.testNet2();
@ -101,7 +101,7 @@ public class BitcoindComparisonTool {
peers.setUserAgent("BlockAcceptanceComparisonTool", "1.0");
// bitcoind MUST be on localhost or we will get banned as a DoSer
peers.addAddress(new PeerAddress(InetAddress.getByName("localhost"), 18444));
peers.addAddress(new PeerAddress(InetAddress.getByName("localhost"), args.length > 2 ? Integer.parseInt(args[2]) : 18444));
peers.addEventListener(new AbstractPeerEventListener() {
@Override