@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.
@@ -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
- 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
- }
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
- 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
- }
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))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.7.14",
3
+ "version": "1.7.15",
4
4
  "description": "Official javascript implementation",
5
5
  "private": false,
6
6
  "exports": {