Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ejMina226 committed Oct 10, 2024
1 parent 69652e5 commit 43fd892
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/sequencer/src/mempool/private/PrivateMempool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ export class PrivateMempool extends SequencerModule implements Mempool {
this.protocol.stateServiceProvider.setCurrentStateService(
baseCachedStateService
);
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
const networkState = (await this.getStagedNetworkState()) as NetworkState;
const networkState =
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
(await this.getStagedNetworkState()) as NetworkState;
const checkTxValid = async (transactions: PendingTransaction[]) => {
for await (const tx of transactions) {
const txStateService = new CachedStateService(baseCachedStateService);
Expand All @@ -115,23 +116,19 @@ export class PrivateMempool extends SequencerModule implements Mempool {
transaction: signedTransaction.transaction,
signature: signedTransaction.signature,
});
const { status, statusMessage } = executionContext.current().result;
console.log("EJ - status message", statusMessage);
const { status } = executionContext.current().result;
if (status.toBoolean()) {
sortedTxs.push(tx);
if (skippedTxs.includes(tx)) {
console.log("EJ - skippedTxs includes tx", skippedTxs);
skippedTxs.splice(skippedTxs.indexOf(tx), 1);
}
await txStateService.mergeIntoParent();
this.protocol.stateServiceProvider.popCurrentStateService();

if (skippedTxs.length > 0) {
console.log("EJ - skippedTxs", skippedTxs.length);
checkTxValid(skippedTxs);
}
} else {
console.log("EJ - Boolean False");
this.protocol.stateServiceProvider.popCurrentStateService();
skippedTxs.push(tx);
}
Expand Down

0 comments on commit 43fd892

Please sign in to comment.