@leofcoin/chain 1.7.123 → 1.7.124

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.
@@ -4933,6 +4933,11 @@ class State extends Contract {
4933
4933
  try {
4934
4934
  await this.jobber.add(() => this.#resolveBlock(hash));
4935
4935
  this.#resolving = false;
4936
+ const lastBlockHash = await globalThis.stateStore.get('lastBlock');
4937
+ if (lastBlockHash === hash) {
4938
+ this.#resolveErrored = false;
4939
+ return;
4940
+ }
4936
4941
  if (!this.#blockHashMap.has(this.#lastResolved.previousHash) && this.#lastResolved.previousHash !== '0x0')
4937
4942
  return this.resolveBlock(this.#lastResolved.previousHash);
4938
4943
  }
package/exports/chain.js CHANGED
@@ -1060,6 +1060,11 @@ class State extends Contract {
1060
1060
  try {
1061
1061
  await this.jobber.add(() => this.#resolveBlock(hash));
1062
1062
  this.#resolving = false;
1063
+ const lastBlockHash = await globalThis.stateStore.get('lastBlock');
1064
+ if (lastBlockHash === hash) {
1065
+ this.#resolveErrored = false;
1066
+ return;
1067
+ }
1063
1068
  if (!this.#blockHashMap.has(this.#lastResolved.previousHash) && this.#lastResolved.previousHash !== '0x0')
1064
1069
  return this.resolveBlock(this.#lastResolved.previousHash);
1065
1070
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.7.123",
3
+ "version": "1.7.124",
4
4
  "description": "Official javascript implementation",
5
5
  "private": false,
6
6
  "exports": {