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:
parent
a1c1a1117a
commit
e8ea5cea7c
@ -52,7 +52,7 @@ public class BitcoindComparisonTool {
|
|||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
BriefLogFormatter.init();
|
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;
|
boolean runLargeReorgs = Integer.parseInt(args[1]) == 1;
|
||||||
|
|
||||||
params = NetworkParameters.testNet2();
|
params = NetworkParameters.testNet2();
|
||||||
@ -101,7 +101,7 @@ public class BitcoindComparisonTool {
|
|||||||
peers.setUserAgent("BlockAcceptanceComparisonTool", "1.0");
|
peers.setUserAgent("BlockAcceptanceComparisonTool", "1.0");
|
||||||
|
|
||||||
// bitcoind MUST be on localhost or we will get banned as a DoSer
|
// 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() {
|
peers.addEventListener(new AbstractPeerEventListener() {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user