mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01: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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue