@leofcoin/chain 1.7.66 → 1.7.67

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.
@@ -1,5 +1,4 @@
1
1
  import { T as TransactionMessage, t as toBase58, C as ContractMessage, R as RawTransactionMessage, B as BlockMessage, a as BWMessage, b as BWRequestMessage } from './index-CM4QYC3g.js';
2
- import { warn } from 'console';
3
2
 
4
3
  if (!globalThis.DEBUG) {
5
4
  let DEBUG = [];
@@ -5181,9 +5180,9 @@ class VersionControl extends State {
5181
5180
  // check if we are above v1.0.0 and if we still not reached v1.0.0
5182
5181
  // if so, clear all data
5183
5182
  // once v1.0.0 is reached this will not run and we can remove this check once every node is above v1.0.0
5184
- warn('the reachedZeroZero flag is set to false, this will clear all data on every start if above v1.0.0');
5183
+ console.warn('the reachedZeroZero flag is set to false, this will clear all data on every start if above v1.0.0');
5185
5184
  if (semver.compare(this.version, '1.0.0') === 1 && !this.#reachedOneZeroZero) {
5186
- warn('clearing all data because we are below v1.0.0');
5185
+ console.warn('clearing all data because we are below v1.0.0');
5187
5186
  await this.clearAll();
5188
5187
  }
5189
5188
  if (semver.compare(this.#currentVersion, this.version) === 1) {
package/exports/chain.js CHANGED
@@ -7,7 +7,6 @@ import semver from 'semver';
7
7
  import { randombytes } from '@leofcoin/crypto';
8
8
  import EasyWorker from '@vandeurenglenn/easy-worker';
9
9
  import { ContractDeploymentError, ExecutionError, isResolveError, ResolveError, isExecutionError } from '@leofcoin/errors';
10
- import { warn } from 'console';
11
10
 
12
11
  const limit = 1800;
13
12
  const transactionLimit = 1000;
@@ -1394,9 +1393,9 @@ class VersionControl extends State {
1394
1393
  // check if we are above v1.0.0 and if we still not reached v1.0.0
1395
1394
  // if so, clear all data
1396
1395
  // once v1.0.0 is reached this will not run and we can remove this check once every node is above v1.0.0
1397
- warn('the reachedZeroZero flag is set to false, this will clear all data on every start if above v1.0.0');
1396
+ console.warn('the reachedZeroZero flag is set to false, this will clear all data on every start if above v1.0.0');
1398
1397
  if (semver.compare(this.version, '1.0.0') === 1 && !this.#reachedOneZeroZero) {
1399
- warn('clearing all data because we are below v1.0.0');
1398
+ console.warn('clearing all data because we are below v1.0.0');
1400
1399
  await this.clearAll();
1401
1400
  }
1402
1401
  if (semver.compare(this.#currentVersion, this.version) === 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.7.66",
3
+ "version": "1.7.67",
4
4
  "description": "Official javascript implementation",
5
5
  "private": false,
6
6
  "exports": {