@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.
- package/exports/browser/chain.js +2 -2
- package/exports/chain.js +2 -2
- package/package.json +1 -1
package/exports/browser/chain.js
CHANGED
|
@@ -1381,9 +1381,9 @@ class State extends Contract {
|
|
|
1381
1381
|
catch (error) {
|
|
1382
1382
|
this.#syncErrorCount += 1;
|
|
1383
1383
|
if (this.#syncErrorCount < 3)
|
|
1384
|
-
|
|
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
|
-
|
|
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)
|