Skip to content

Commit

Permalink
chore: post merge fix w/ sequencer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MirandaWood committed Nov 22, 2024
1 parent 6b82d25 commit b787de6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions yarn-project/sequencer-client/src/sequencer/sequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,21 +513,17 @@ export class Sequencer {
const processor = this.publicProcessorFactory.create(publicProcessorFork, historicalHeader, newGlobalVariables);
const blockBuildingTimer = new Timer();
const blockBuilder = this.blockBuilderFactory.create(orchestratorFork);
await blockBuilder.startNewBlock(blockSize, newGlobalVariables, l1ToL2Messages);
await blockBuilder.startNewBlock(newGlobalVariables, l1ToL2Messages);

const [publicProcessorDuration, [processedTxs, failedTxs]] = await elapsed(() =>
processor.process(
validTxs,
blockSize,
blockBuilder,
this.txValidatorFactory.validatorForProcessedTxs(publicProcessorFork),
),
processor.process(validTxs, blockSize, this.txValidatorFactory.validatorForProcessedTxs(publicProcessorFork)),
);
if (failedTxs.length > 0) {
const failedTxData = failedTxs.map(fail => fail.tx);
this.log.debug(`Dropping failed txs ${Tx.getHashes(failedTxData).join(', ')}`);
await this.p2pClient.deleteTxs(Tx.getHashes(failedTxData));
}
await blockBuilder.addTxs(processedTxs);

await interrupt?.(processedTxs);

Expand Down

0 comments on commit b787de6

Please sign in to comment.