@leofcoin/chain 1.7.14 → 1.7.15
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 +7 -7
- package/exports/chain.js +7 -7
- package/package.json +1 -1
package/exports/browser/chain.js
CHANGED
|
@@ -4816,16 +4816,16 @@ class State extends Contract {
|
|
|
4816
4816
|
if (block && !block.loaded) {
|
|
4817
4817
|
try {
|
|
4818
4818
|
let transactions = await this.#loadBlockTransactions([...block.transactions] || []);
|
|
4819
|
-
const lastTransactions = await this.#getLastTransactions()
|
|
4819
|
+
// const lastTransactions = await this.#getLastTransactions()
|
|
4820
4820
|
let priority = [];
|
|
4821
4821
|
for (const transaction of transactions) {
|
|
4822
4822
|
const hash = await transaction.hash();
|
|
4823
|
-
if (lastTransactions.includes(hash)) {
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
}
|
|
4823
|
+
// if (lastTransactions.includes(hash)) {
|
|
4824
|
+
// console.log('removing invalid block')
|
|
4825
|
+
// await globalThis.blockStore.delete(await (await new BlockMessage(block)).hash())
|
|
4826
|
+
// blocks.splice(block.index - 1, 1)
|
|
4827
|
+
// return this.#loadBlocks(blocks)
|
|
4828
|
+
// }
|
|
4829
4829
|
if (transaction.decoded.priority)
|
|
4830
4830
|
priority.push(transaction);
|
|
4831
4831
|
if (poolTransactionKeys.includes(hash))
|
package/exports/chain.js
CHANGED
|
@@ -1183,16 +1183,16 @@ class State extends Contract {
|
|
|
1183
1183
|
if (block && !block.loaded) {
|
|
1184
1184
|
try {
|
|
1185
1185
|
let transactions = await this.#loadBlockTransactions([...block.transactions] || []);
|
|
1186
|
-
const lastTransactions = await this.#getLastTransactions()
|
|
1186
|
+
// const lastTransactions = await this.#getLastTransactions()
|
|
1187
1187
|
let priority = [];
|
|
1188
1188
|
for (const transaction of transactions) {
|
|
1189
1189
|
const hash = await transaction.hash();
|
|
1190
|
-
if (lastTransactions.includes(hash)) {
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
}
|
|
1190
|
+
// if (lastTransactions.includes(hash)) {
|
|
1191
|
+
// console.log('removing invalid block')
|
|
1192
|
+
// await globalThis.blockStore.delete(await (await new BlockMessage(block)).hash())
|
|
1193
|
+
// blocks.splice(block.index - 1, 1)
|
|
1194
|
+
// return this.#loadBlocks(blocks)
|
|
1195
|
+
// }
|
|
1196
1196
|
if (transaction.decoded.priority)
|
|
1197
1197
|
priority.push(transaction);
|
|
1198
1198
|
if (poolTransactionKeys.includes(hash))
|