@leofcoin/chain 1.4.69 → 1.4.70
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 +1 -1
- package/exports/chain.js +1 -1
- package/package.json +1 -1
package/exports/browser/chain.js
CHANGED
|
@@ -8268,7 +8268,7 @@ class Chain extends Contract {
|
|
|
8268
8268
|
return;
|
|
8269
8269
|
const lastBlock = await this.#makeRequest(peer, 'lastBlock');
|
|
8270
8270
|
if (Object.keys(lastBlock).length > 0) {
|
|
8271
|
-
if (this.#resolveErrored || lastBlock && lastBlock.index > this.#lastBlock?.index) {
|
|
8271
|
+
if (this.#resolveErrored || !this.#lastBlock || lastBlock && lastBlock.index > this.#lastBlock?.index) {
|
|
8272
8272
|
// this.#knownBlocks = await this.#makeRequest(peer, 'knownBlocks')
|
|
8273
8273
|
this.#resolveErrored = false;
|
|
8274
8274
|
if (lastBlock)
|
package/exports/chain.js
CHANGED
|
@@ -854,7 +854,7 @@ class Chain extends Contract {
|
|
|
854
854
|
return;
|
|
855
855
|
const lastBlock = await this.#makeRequest(peer, 'lastBlock');
|
|
856
856
|
if (Object.keys(lastBlock).length > 0) {
|
|
857
|
-
if (this.#resolveErrored || lastBlock && lastBlock.index > this.#lastBlock?.index) {
|
|
857
|
+
if (this.#resolveErrored || !this.#lastBlock || lastBlock && lastBlock.index > this.#lastBlock?.index) {
|
|
858
858
|
// this.#knownBlocks = await this.#makeRequest(peer, 'knownBlocks')
|
|
859
859
|
this.#resolveErrored = false;
|
|
860
860
|
if (lastBlock)
|