@xyo-network/xl1-protocol-sdk 1.21.3 → 1.21.4
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/dist/neutral/index.mjs
CHANGED
|
@@ -4628,12 +4628,12 @@ var SimpleMempoolRunner = class extends AbstractCreatableProvider {
|
|
|
4628
4628
|
pruned += pruneHashes.length;
|
|
4629
4629
|
total += batch.length;
|
|
4630
4630
|
await this.pendingBlocksArchivist.delete(pruneHashes);
|
|
4631
|
-
cursor = batch
|
|
4632
|
-
batch = await this.pendingBlocksArchivist.next({
|
|
4631
|
+
cursor = batch.at(-1)?._sequence;
|
|
4632
|
+
batch = cursor ? await this.pendingBlocksArchivist.next({
|
|
4633
4633
|
limit: batchSize,
|
|
4634
4634
|
cursor,
|
|
4635
4635
|
order: "desc"
|
|
4636
|
-
});
|
|
4636
|
+
}) : [];
|
|
4637
4637
|
}
|
|
4638
4638
|
return [pruned, total];
|
|
4639
4639
|
}
|