@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.
- package/exports/browser/chain.js +2 -1
- package/exports/chain.js +2 -1
- package/package.json +1 -1
package/exports/browser/chain.js
CHANGED
|
@@ -1628,7 +1628,8 @@ class State extends Contract {
|
|
|
1628
1628
|
get shouldSync() {
|
|
1629
1629
|
if (this.#chainSyncing)
|
|
1630
1630
|
return false;
|
|
1631
|
-
if (this.#
|
|
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.#
|
|
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())
|