Added stresstest flags to p2p network version and seed node repo

This commit is contained in:
Manfred Karrer 2016-05-27 14:34:25 +02:00
parent 88951b5725
commit eccfea70fb
2 changed files with 6 additions and 5 deletions

View file

@ -32,7 +32,7 @@ public class Version {
// VERSION = 0.3.5 -> P2P_NETWORK_VERSION = 2
// VERSION = 0.4.0 -> P2P_NETWORK_VERSION = 3
// VERSION = 0.4.2 -> P2P_NETWORK_VERSION = 4
public static final int P2P_NETWORK_VERSION = 4;
public static final int P2P_NETWORK_VERSION = DevFlags.STRESS_TEST_MODE ? 100 : 4;
// The version nr. of the serialized data stored to disc. A change will break the serialization of old objects.
// VERSION = 0.3.4 -> LOCAL_DB_VERSION = 1

View file

@ -1,6 +1,7 @@
package io.bitsquare.p2p.seed;
import com.google.common.collect.Sets;
import io.bitsquare.app.DevFlags;
import io.bitsquare.p2p.NodeAddress;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -33,10 +34,10 @@ public class SeedNodesRepository {
new NodeAddress("b66vnevaljo6xt5a.onion:8000"),*/
// v0.4.2
new NodeAddress("uadzuib66jupaept.onion:8000"),
new NodeAddress("hbma455xxbqhcuqh.onion:8000"),
new NodeAddress("wgthuiqn3aoiovbm.onion:8000"),
new NodeAddress("2zxtnprnx5wqr7a3.onion:8000"),
DevFlags.STRESS_TEST_MODE ? new NodeAddress("TBD.onion:8000") : new NodeAddress("uadzuib66jupaept.onion:8000"),
DevFlags.STRESS_TEST_MODE ? new NodeAddress("TBD.onion:8000") : new NodeAddress("hbma455xxbqhcuqh.onion:8000"),
DevFlags.STRESS_TEST_MODE ? new NodeAddress("TBD.onion:8000") : new NodeAddress("wgthuiqn3aoiovbm.onion:8000"),
DevFlags.STRESS_TEST_MODE ? new NodeAddress("TBD.onion:8000") : new NodeAddress("2zxtnprnx5wqr7a3.onion:8000"),
// testnet
new NodeAddress("znmy44wcstn2rkva.onion:8001"),