Reset sub version nr to 1

This commit is contained in:
Manfred Karrer 2017-03-03 10:38:28 -05:00
parent 28a704ed85
commit 002211b7f6

View file

@ -28,21 +28,16 @@ public class Version {
// The version no. for the objects sent over the network. A change will break the serialization of old objects.
// If objects are used for both network and database the network version is applied.
// VERSION = 0.3.4 -> P2P_NETWORK_VERSION = 1
// 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 = DevFlags.STRESS_TEST_MODE ? 100 : 4;
// VERSION = 0.5.0.0 -> P2P_NETWORK_VERSION = 1
public static final int P2P_NETWORK_VERSION = DevFlags.STRESS_TEST_MODE ? 100 : 1;
// The version no. of the serialized data stored to disc. A change will break the serialization of old objects.
// VERSION = 0.3.4 -> LOCAL_DB_VERSION = 1
// VERSION = 0.3.5 -> LOCAL_DB_VERSION = 2
// VERSION = 0.4.0 -> LOCAL_DB_VERSION = 3
// VERSION = 0.4.2 -> LOCAL_DB_VERSION = 4
public static final int LOCAL_DB_VERSION = 4;
// VERSION = 0.5.0.0 -> LOCAL_DB_VERSION = 1
public static final int LOCAL_DB_VERSION = 1;
// The version no. of the current protocol. The offer holds that version.
// A taker will check the version of the offers to see if his version is compatible.
// VERSION = 0.5.0.0 -> TRADE_PROTOCOL_VERSION = 1
public static final int TRADE_PROTOCOL_VERSION = 1;
private static int p2pMessageVersion;