mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-22 13:39:39 -04:00
Turn detailed logging of network stress test into a constant
This commit is contained in:
parent
d439058392
commit
bfbda2c38e
1 changed files with 3 additions and 1 deletions
|
@ -35,6 +35,8 @@ public class NetworkStressTest {
|
||||||
|
|
||||||
/** Number of peer nodes to create. */
|
/** Number of peer nodes to create. */
|
||||||
private static final int NPEERS = 4;
|
private static final int NPEERS = 4;
|
||||||
|
/** Whether to log messages less important than warnings. */
|
||||||
|
private static final boolean USE_DETAILED_LOGGING = false;
|
||||||
|
|
||||||
// Constants
|
// Constants
|
||||||
|
|
||||||
|
@ -77,7 +79,7 @@ public class NetworkStressTest {
|
||||||
final Set<NodeAddress> seedNodes = new HashSet<>(1);
|
final Set<NodeAddress> seedNodes = new HashSet<>(1);
|
||||||
seedNodes.add(seedNodeAddress); // the only seed node in tests
|
seedNodes.add(seedNodeAddress); // the only seed node in tests
|
||||||
seedNode.createAndStartP2PService(seedNodeAddress, useLocalhost,
|
seedNode.createAndStartP2PService(seedNodeAddress, useLocalhost,
|
||||||
REGTEST_NETWORK_ID, true /*detailed logging*/, seedNodes,
|
REGTEST_NETWORK_ID, USE_DETAILED_LOGGING, seedNodes,
|
||||||
new SeedServiceListener(localServicesLatch, localServicesFailed));
|
new SeedServiceListener(localServicesLatch, localServicesFailed));
|
||||||
|
|
||||||
// Create and start peer nodes.
|
// Create and start peer nodes.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue