@leofcoin/chain 1.4.56 → 1.4.57

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.
@@ -8243,7 +8243,7 @@ class Chain extends Contract {
8243
8243
  this.#resolveErrored = false;
8244
8244
  if (lastBlock)
8245
8245
  await this.#syncChain(lastBlock);
8246
- if (await this.hasTransactionToHandle())
8246
+ if (await this.hasTransactionToHandle() && !this.#resolveErrored && this.#participating)
8247
8247
  this.#runEpoch();
8248
8248
  }
8249
8249
  }
@@ -8434,7 +8434,7 @@ class Chain extends Contract {
8434
8434
  const transaction = await signTransaction(rawTransaction, globalThis.peernet.identity);
8435
8435
  await this.sendTransaction(transaction);
8436
8436
  }
8437
- if (await this.hasTransactionToHandle() && !this.#runningEpoch)
8437
+ if (await this.hasTransactionToHandle() && !this.#runningEpoch && this.#participating)
8438
8438
  await this.#runEpoch();
8439
8439
  }
8440
8440
  // todo filter tx that need to wait on prev nonce
package/exports/chain.js CHANGED
@@ -829,7 +829,7 @@ class Chain extends Contract {
829
829
  this.#resolveErrored = false;
830
830
  if (lastBlock)
831
831
  await this.#syncChain(lastBlock);
832
- if (await this.hasTransactionToHandle())
832
+ if (await this.hasTransactionToHandle() && !this.#resolveErrored && this.#participating)
833
833
  this.#runEpoch();
834
834
  }
835
835
  }
@@ -1020,7 +1020,7 @@ class Chain extends Contract {
1020
1020
  const transaction = await signTransaction(rawTransaction, globalThis.peernet.identity);
1021
1021
  await this.sendTransaction(transaction);
1022
1022
  }
1023
- if (await this.hasTransactionToHandle() && !this.#runningEpoch)
1023
+ if (await this.hasTransactionToHandle() && !this.#runningEpoch && this.#participating)
1024
1024
  await this.#runEpoch();
1025
1025
  }
1026
1026
  // todo filter tx that need to wait on prev nonce
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.4.56",
3
+ "version": "1.4.57",
4
4
  "description": "Official javascript implementation",
5
5
  "exports": {
6
6
  "./node": "./exports/node.js",