@leofcoin/chain 1.5.47 → 1.5.48
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 +2 -2
- package/exports/chain.js +2 -2
- package/package.json +1 -1
package/exports/browser/chain.js
CHANGED
|
@@ -4761,8 +4761,8 @@ class Chain extends VersionControl {
|
|
|
4761
4761
|
this.#addTransaction = async (message) => {
|
|
4762
4762
|
const transaction = new TransactionMessage(message);
|
|
4763
4763
|
const hash = await transaction.hash();
|
|
4764
|
-
if (await
|
|
4765
|
-
await
|
|
4764
|
+
if (await transactionPoolStore.has(hash))
|
|
4765
|
+
await transactionPoolStore.delete(hash);
|
|
4766
4766
|
console.log(transaction);
|
|
4767
4767
|
};
|
|
4768
4768
|
// @ts-ignore
|
package/exports/chain.js
CHANGED
|
@@ -1172,8 +1172,8 @@ class Chain extends VersionControl {
|
|
|
1172
1172
|
this.#addTransaction = async (message) => {
|
|
1173
1173
|
const transaction = new TransactionMessage(message);
|
|
1174
1174
|
const hash = await transaction.hash();
|
|
1175
|
-
if (await
|
|
1176
|
-
await
|
|
1175
|
+
if (await transactionPoolStore.has(hash))
|
|
1176
|
+
await transactionPoolStore.delete(hash);
|
|
1177
1177
|
console.log(transaction);
|
|
1178
1178
|
};
|
|
1179
1179
|
// @ts-ignore
|