@leofcoin/chain 1.5.4 → 1.5.5

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.
@@ -1381,9 +1381,9 @@ class State extends Contract {
1381
1381
  catch (error) {
1382
1382
  this.#syncErrorCount += 1;
1383
1383
  if (this.#syncErrorCount < 3)
1384
- await this.#syncChain(lastBlock);
1385
- this.#chainSyncing = false;
1384
+ return this.syncChain(lastBlock);
1386
1385
  this.#syncErrorCount = 0;
1386
+ this.#chainSyncing = false;
1387
1387
  return 'errored';
1388
1388
  }
1389
1389
  if (lastBlock.index === this.#lastBlockInQue?.index)
package/exports/chain.js CHANGED
@@ -821,9 +821,9 @@ class State extends Contract {
821
821
  catch (error) {
822
822
  this.#syncErrorCount += 1;
823
823
  if (this.#syncErrorCount < 3)
824
- await this.#syncChain(lastBlock);
825
- this.#chainSyncing = false;
824
+ return this.syncChain(lastBlock);
826
825
  this.#syncErrorCount = 0;
826
+ this.#chainSyncing = false;
827
827
  return 'errored';
828
828
  }
829
829
  if (lastBlock.index === this.#lastBlockInQue?.index)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "Official javascript implementation",
5
5
  "exports": {
6
6
  "./node": "./exports/node.js",