mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-14 02:39:25 -04:00
Add maxConnection program arg
This commit is contained in:
parent
12e56fbd8b
commit
ef2e3e593e
2 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ public class TestUtils {
|
|||
}
|
||||
|
||||
P2PService p2PService = new P2PService(seedNodesRepository, port, new File("seed_node_" + port), useLocalhost,
|
||||
2, new File("dummy"), new Clock(), encryptionService, keyRing);
|
||||
2, P2PService.MAX_CONNECTIONS_DEFAULT, new File("dummy"), new Clock(), encryptionService, keyRing);
|
||||
p2PService.start(new P2PServiceListener() {
|
||||
@Override
|
||||
public void onRequestingDataCompleted() {
|
||||
|
|
|
@ -323,7 +323,7 @@ public class NetworkStressTest {
|
|||
final EncryptionService peerEncryptionService = new EncryptionService(peerKeyRing);
|
||||
|
||||
return new P2PService(seedNodesRepository, port, peerTorDir, useLocalhost,
|
||||
REGTEST_NETWORK_ID, peerStorageDir, new Clock(), peerEncryptionService, peerKeyRing);
|
||||
REGTEST_NETWORK_ID, P2PService.MAX_CONNECTIONS_DEFAULT, peerStorageDir, new Clock(), peerEncryptionService, peerKeyRing);
|
||||
}
|
||||
|
||||
// ## TEST SETUP: P2P service listener classes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue