mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Use variable to indicate whether a localhost address is being used
This commit is contained in:
parent
c9f0155473
commit
9f0dfb5512
1 changed files with 2 additions and 1 deletions
|
@ -27,13 +27,14 @@ public class NetworkStressTest {
|
|||
tempDir = createTempDirectory();
|
||||
seedNode = new SeedNode(tempDir.toString());
|
||||
final NodeAddress seedNodeAddress = new NodeAddress("localhost:8002");
|
||||
final boolean useLocalhost = true;
|
||||
final Set<NodeAddress> seedNodes = new HashSet<>(1);
|
||||
seedNodes.add(seedNodeAddress); // the only seed node in tests
|
||||
|
||||
// Use as a barrier to wait for concurrent tasks.
|
||||
final CountDownLatch latch = new CountDownLatch(1 /*seed node*/);
|
||||
// Start the seed node.
|
||||
seedNode.createAndStartP2PService(seedNodeAddress, true /*localhost*/,
|
||||
seedNode.createAndStartP2PService(seedNodeAddress, useLocalhost,
|
||||
2 /*regtest*/, true /*detailed logging*/, seedNodes,
|
||||
new P2PServiceListener() {
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue