mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 19:49:32 +00:00
bump version to v0.0.2
reset trade protocol version to 1
This commit is contained in:
parent
b04a82fe78
commit
8d5643a5e6
1 changed files with 4 additions and 11 deletions
|
@ -27,18 +27,15 @@ import static com.google.common.base.Preconditions.checkArgument;
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class Version {
|
public class Version {
|
||||||
// The application versions
|
// The application versions
|
||||||
// VERSION = 0.5.0 introduces proto buffer for the P2P network and local DB and is a not backward compatible update
|
|
||||||
// Therefore all sub versions start again with 1
|
|
||||||
// We use semantic versioning with major, minor and patch
|
// We use semantic versioning with major, minor and patch
|
||||||
public static final String VERSION = "0.0.1";
|
public static final String VERSION = "0.0.2";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds a list of the tagged resource files for optimizing the getData requests.
|
* Holds a list of the tagged resource files for optimizing the getData requests.
|
||||||
* This must not contain each version but only those where we add new version-tagged resource files for
|
* This must not contain each version but only those where we add new version-tagged resource files for
|
||||||
* historical data stores.
|
* historical data stores.
|
||||||
*/
|
*/
|
||||||
public static final List<String> HISTORICAL_RESOURCE_FILE_VERSION_TAGS = Arrays.asList("1.4.0", "1.5.0", "1.5.2",
|
public static final List<String> HISTORICAL_RESOURCE_FILE_VERSION_TAGS = Arrays.asList("0.0.1");
|
||||||
"1.5.5", "1.5.7", "1.6.0");
|
|
||||||
|
|
||||||
public static int getMajorVersion(String version) {
|
public static int getMajorVersion(String version) {
|
||||||
return getSubVersion(version, 0);
|
return getSubVersion(version, 0);
|
||||||
|
@ -83,8 +80,6 @@ public class Version {
|
||||||
|
|
||||||
// The version no. for the objects sent over the network. A change will break the serialization of old objects.
|
// 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.
|
// If objects are used for both network and database the network version is applied.
|
||||||
// VERSION = 0.5.0 -> P2P_NETWORK_VERSION = 1
|
|
||||||
// With version 1.2.2 we change to version 2 (new trade protocol)
|
|
||||||
public static final String P2P_NETWORK_VERSION = "A";
|
public static final String P2P_NETWORK_VERSION = "A";
|
||||||
|
|
||||||
// The version no. of the serialized data stored to disc. A change will break the serialization of old objects.
|
// The version no. of the serialized data stored to disc. A change will break the serialization of old objects.
|
||||||
|
@ -96,10 +91,8 @@ public class Version {
|
||||||
// For the switch to version 2, offers created with the old version will become invalid and have to be canceled.
|
// For the switch to version 2, offers created with the old version will become invalid and have to be canceled.
|
||||||
// For the switch to version 3, offers created with the old version can be migrated to version 3 just by opening
|
// For the switch to version 3, offers created with the old version can be migrated to version 3 just by opening
|
||||||
// the Bisq app.
|
// the Bisq app.
|
||||||
// VERSION = 0.5.0 -> TRADE_PROTOCOL_VERSION = 1
|
// VERSION = 0.0.1 -> TRADE_PROTOCOL_VERSION = 1
|
||||||
// Version 1.2.2 -> TRADE_PROTOCOL_VERSION = 2
|
public static final int TRADE_PROTOCOL_VERSION = 1;
|
||||||
// Version 1.5.0 -> TRADE_PROTOCOL_VERSION = 3
|
|
||||||
public static final int TRADE_PROTOCOL_VERSION = 3;
|
|
||||||
private static String p2pMessageVersion;
|
private static String p2pMessageVersion;
|
||||||
|
|
||||||
public static String getP2PMessageVersion() {
|
public static String getP2PMessageVersion() {
|
||||||
|
|
Loading…
Reference in a new issue