@leofcoin/chain 1.5.29 → 1.5.31

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.
@@ -1628,7 +1628,8 @@ class State extends Contract {
1628
1628
  get shouldSync() {
1629
1629
  if (this.#chainSyncing)
1630
1630
  return false;
1631
- if (this.#resolveErrored ||
1631
+ if (!this.#chainSyncing ||
1632
+ this.#resolveErrored ||
1632
1633
  this.#syncState === 'errored' ||
1633
1634
  this.#syncState === 'connectionless' ||
1634
1635
  this.#lastResolvedTime + this.resolveTimeout > Date.now())
package/exports/chain.js CHANGED
@@ -1064,7 +1064,8 @@ class State extends Contract {
1064
1064
  get shouldSync() {
1065
1065
  if (this.#chainSyncing)
1066
1066
  return false;
1067
- if (this.#resolveErrored ||
1067
+ if (!this.#chainSyncing ||
1068
+ this.#resolveErrored ||
1068
1069
  this.#syncState === 'errored' ||
1069
1070
  this.#syncState === 'connectionless' ||
1070
1071
  this.#lastResolvedTime + this.resolveTimeout > Date.now())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.5.29",
3
+ "version": "1.5.31",
4
4
  "description": "Official javascript implementation",
5
5
  "exports": {
6
6
  "./node": {