@leofcoin/chain 1.5.12 → 1.5.13
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 +1 -1
- package/exports/chain.js +1 -1
- package/package.json +1 -1
package/exports/browser/chain.js
CHANGED
|
@@ -1499,7 +1499,7 @@ class State extends Contract {
|
|
|
1499
1499
|
if (lastTransactions.includes(hash)) {
|
|
1500
1500
|
console.log('removing invalid block');
|
|
1501
1501
|
await globalThis.blockStore.delete(await (await new BlockMessage(block)).hash());
|
|
1502
|
-
blocks.splice(block.index
|
|
1502
|
+
blocks.splice(block.index);
|
|
1503
1503
|
return this.#loadBlocks(blocks);
|
|
1504
1504
|
}
|
|
1505
1505
|
try {
|
package/exports/chain.js
CHANGED
|
@@ -942,7 +942,7 @@ class State extends Contract {
|
|
|
942
942
|
if (lastTransactions.includes(hash)) {
|
|
943
943
|
console.log('removing invalid block');
|
|
944
944
|
await globalThis.blockStore.delete(await (await new BlockMessage(block)).hash());
|
|
945
|
-
blocks.splice(block.index
|
|
945
|
+
blocks.splice(block.index);
|
|
946
946
|
return this.#loadBlocks(blocks);
|
|
947
947
|
}
|
|
948
948
|
try {
|