mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-22 00:19:10 -04:00
Rename method to get seed node address for network stress test
This one better conveys the intention of providing a new address each time it is called.
This commit is contained in:
parent
5a4886ffa4
commit
39c9512673
@ -125,7 +125,7 @@ public class NetworkStressTest {
|
||||
|
||||
// Create and start the seed node.
|
||||
seedNode = new SeedNode(testDataDir.toString());
|
||||
final NodeAddress seedNodeAddress = getSeedNodeAddress();
|
||||
final NodeAddress seedNodeAddress = newSeedNodeAddress();
|
||||
final boolean useLocalhost = seedNodeAddress.hostName.equals("localhost");
|
||||
final Set<NodeAddress> seedNodes = new HashSet<>(1);
|
||||
seedNodes.add(seedNodeAddress); // the only seed node in tests
|
||||
@ -165,7 +165,7 @@ public class NetworkStressTest {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private static NodeAddress getSeedNodeAddress() {
|
||||
private static NodeAddress newSeedNodeAddress() {
|
||||
// The address is only considered by ``SeedNodesRepository`` if
|
||||
// it ends in the digit matching the network identifier.
|
||||
int port;
|
||||
|
Loading…
x
Reference in New Issue
Block a user