@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.
@@ -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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.4.69",
3
+ "version": "1.4.70",
4
4
  "description": "Official javascript implementation",
5
5
  "exports": {
6
6
  "./node": "./exports/node.js",