@leofcoin/chain 1.7.71 → 1.7.72

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.
@@ -1,3 +1,3 @@
1
- export { N as default } from './node-browser-DcYcGvEF.js';
2
- import './identity-CQ_ieRiz-CTM-_kGF.js';
1
+ export { N as default } from './node-browser-BvxzAdLe.js';
2
+ import './identity--VAIVSMm-DTWL357I.js';
3
3
  import './index-DUfUgiQY.js';
package/exports/chain.js CHANGED
@@ -1538,6 +1538,10 @@ class Chain extends VersionControl {
1538
1538
  }
1539
1539
  async #invalidTransaction(hash) {
1540
1540
  hash = new TextDecoder().decode(hash);
1541
+ if (!(await globalThis.transactionPoolStore.has(hash))) {
1542
+ debug(`transaction ${hash} not in pool`);
1543
+ return;
1544
+ }
1541
1545
  console.log(`removing invalid transaction: ${hash}`);
1542
1546
  await globalThis.transactionPoolStore.delete(hash);
1543
1547
  }
@@ -1749,10 +1753,7 @@ class Chain extends VersionControl {
1749
1753
  console.log({ e });
1750
1754
  console.log(hash);
1751
1755
  peernet.publish('invalid-transaction', hash);
1752
- console.log(await globalThis.transactionPoolStore.keys());
1753
- console.log(await globalThis.transactionPoolStore.has(e.hash));
1754
1756
  await globalThis.transactionPoolStore.delete(e.hash);
1755
- console.log(await globalThis.transactionPoolStore.has(e.hash));
1756
1757
  }
1757
1758
  }
1758
1759
  // 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.7.71",
3
+ "version": "1.7.72",
4
4
  "description": "Official javascript implementation",
5
5
  "private": false,
6
6
  "exports": {
@@ -69,10 +69,10 @@
69
69
  "@leofcoin/messages": "^1.4.40",
70
70
  "@leofcoin/multi-wallet": "^3.1.8",
71
71
  "@leofcoin/networks": "^1.1.25",
72
- "@leofcoin/peernet": "^1.1.82",
72
+ "@leofcoin/peernet": "^1.1.83",
73
73
  "@leofcoin/storage": "^3.5.38",
74
74
  "@leofcoin/utils": "^1.1.39",
75
- "@leofcoin/workers": "^1.5.22",
75
+ "@leofcoin/workers": "^1.5.23",
76
76
  "@vandeurenglenn/base58": "^1.1.9",
77
77
  "@vandeurenglenn/easy-worker": "^1.0.2",
78
78
  "semver": "^7.7.2"