@xyo-network/xl1-protocol-sdk 1.26.7 → 1.26.9
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
|
@@ -4589,8 +4589,6 @@ import {
|
|
|
4589
4589
|
ChainContractViewerMoniker as ChainContractViewerMoniker4,
|
|
4590
4590
|
DEFAULT_MAX_EXP_AHEAD,
|
|
4591
4591
|
FinalizationViewerMoniker as FinalizationViewerMoniker4,
|
|
4592
|
-
isHydratedBlockWithHashMeta,
|
|
4593
|
-
isHydratedTransactionWithHashMeta,
|
|
4594
4592
|
isSignedHydratedBlockWithHashMeta,
|
|
4595
4593
|
isSignedHydratedTransactionWithHashMeta,
|
|
4596
4594
|
MempoolRunnerMoniker,
|
|
@@ -4681,9 +4679,12 @@ var SimpleMempoolRunner = class extends AbstractCreatableProvider {
|
|
|
4681
4679
|
remainingBlockMap.length === remainingBlocks.length,
|
|
4682
4680
|
() => `remainingBlockMap length should match remainingBlocks length [${remainingBlockMap.length}/${remainingBlocks.length}]`
|
|
4683
4681
|
);
|
|
4684
|
-
const validationResults = await this.blockValidationViewer.
|
|
4682
|
+
const validationResults = await Promise.all(remainingBlocks.map((remainingBlock) => this.blockValidationViewer.validateBlock(
|
|
4683
|
+
remainingBlock,
|
|
4684
|
+
{ value: true, state: true }
|
|
4685
|
+
)));
|
|
4685
4686
|
for (const [i, r] of validationResults.entries()) {
|
|
4686
|
-
const validated =
|
|
4687
|
+
const validated = isSignedHydratedBlockWithHashMeta(r);
|
|
4687
4688
|
if (!validated) {
|
|
4688
4689
|
this.logger?.info(`Pruning block ${bundles[remainingBlockMap[i]]._hash} during block validation`);
|
|
4689
4690
|
this.logger?.info(` - validation result: ${JSON.stringify(r, null, 2)}`);
|
|
@@ -4738,9 +4739,12 @@ var SimpleMempoolRunner = class extends AbstractCreatableProvider {
|
|
|
4738
4739
|
remainingTransactionMap.length === remainingTransactions.length,
|
|
4739
4740
|
() => `remainingTransactionMap length should match remainingTransactions length [${remainingTransactionMap.length}/${remainingTransactions.length}]`
|
|
4740
4741
|
);
|
|
4741
|
-
const validationResults = await this.transactionValidationViewer.
|
|
4742
|
+
const validationResults = await Promise.all(remainingTransactions.map((remainingTransaction) => this.transactionValidationViewer.validateTransaction(
|
|
4743
|
+
remainingTransaction,
|
|
4744
|
+
{ value: true, state: true }
|
|
4745
|
+
)));
|
|
4742
4746
|
for (const [i, r] of validationResults.entries()) {
|
|
4743
|
-
const validated =
|
|
4747
|
+
const validated = isSignedHydratedTransactionWithHashMeta(r);
|
|
4744
4748
|
if (!validated) {
|
|
4745
4749
|
this.logger?.info(`Pruning transaction ${bundles[remainingTransactionMap[i]]._hash} during transaction validation`);
|
|
4746
4750
|
this.logger?.info(` - validation result: ${JSON.stringify(r, null, 2)}`);
|