@leofcoin/chain 1.6.13 → 1.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/exports/browser/chain.js +7 -6
- package/exports/chain.js +7 -6
- package/package.json +1 -1
package/exports/browser/chain.js
CHANGED
|
@@ -4879,7 +4879,7 @@ class VersionControl extends State {
|
|
|
4879
4879
|
constructor(config) {
|
|
4880
4880
|
super(config);
|
|
4881
4881
|
}
|
|
4882
|
-
#currentVersion = '1.2.
|
|
4882
|
+
#currentVersion = '1.2.1';
|
|
4883
4883
|
async #setCurrentVersion() {
|
|
4884
4884
|
this.version = this.#currentVersion;
|
|
4885
4885
|
await globalThis.chainStore.put('version', this.version);
|
|
@@ -4892,15 +4892,16 @@ class VersionControl extends State {
|
|
|
4892
4892
|
console.log(this.version, this.#currentVersion);
|
|
4893
4893
|
/**
|
|
4894
4894
|
* protocol version control!
|
|
4895
|
-
*
|
|
4896
|
-
*
|
|
4897
|
-
*
|
|
4895
|
+
* Note that before v0.2.0 everything gets deleted because of big changes,
|
|
4896
|
+
* this is not what we want in the future.
|
|
4897
|
+
* In the future we want newer nodes to handle the new changes and still confirm old version transactions
|
|
4898
|
+
* Unless there is a security issue!
|
|
4899
|
+
* But for now the protocoll isn't finished enough and still has to much breaking changes.
|
|
4898
4900
|
*/
|
|
4899
|
-
if (semver$1.compare('1.
|
|
4901
|
+
if (semver$1.compare('1.2.0', this.version) === 1) {
|
|
4900
4902
|
await this.clearAll();
|
|
4901
4903
|
}
|
|
4902
4904
|
if (semver$1.compare(this.#currentVersion, this.version) === 1) {
|
|
4903
|
-
// await this.clearAll()
|
|
4904
4905
|
await this.#setCurrentVersion();
|
|
4905
4906
|
}
|
|
4906
4907
|
// if (version)
|
package/exports/chain.js
CHANGED
|
@@ -1246,7 +1246,7 @@ class VersionControl extends State {
|
|
|
1246
1246
|
constructor(config) {
|
|
1247
1247
|
super(config);
|
|
1248
1248
|
}
|
|
1249
|
-
#currentVersion = '1.2.
|
|
1249
|
+
#currentVersion = '1.2.1';
|
|
1250
1250
|
async #setCurrentVersion() {
|
|
1251
1251
|
this.version = this.#currentVersion;
|
|
1252
1252
|
await globalThis.chainStore.put('version', this.version);
|
|
@@ -1259,15 +1259,16 @@ class VersionControl extends State {
|
|
|
1259
1259
|
console.log(this.version, this.#currentVersion);
|
|
1260
1260
|
/**
|
|
1261
1261
|
* protocol version control!
|
|
1262
|
-
*
|
|
1263
|
-
*
|
|
1264
|
-
*
|
|
1262
|
+
* Note that before v0.2.0 everything gets deleted because of big changes,
|
|
1263
|
+
* this is not what we want in the future.
|
|
1264
|
+
* In the future we want newer nodes to handle the new changes and still confirm old version transactions
|
|
1265
|
+
* Unless there is a security issue!
|
|
1266
|
+
* But for now the protocoll isn't finished enough and still has to much breaking changes.
|
|
1265
1267
|
*/
|
|
1266
|
-
if (semver.compare('1.
|
|
1268
|
+
if (semver.compare('1.2.0', this.version) === 1) {
|
|
1267
1269
|
await this.clearAll();
|
|
1268
1270
|
}
|
|
1269
1271
|
if (semver.compare(this.#currentVersion, this.version) === 1) {
|
|
1270
|
-
// await this.clearAll()
|
|
1271
1272
|
await this.#setCurrentVersion();
|
|
1272
1273
|
}
|
|
1273
1274
|
// if (version)
|