Skip to content

Commit

Permalink
removing unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Apr 4, 2024
1 parent 36ea6ab commit 228fb80
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions yarn-project/pxe/src/synchronizer/synchronizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,6 @@ export class Synchronizer {

const encryptedLogs = blocks.flatMap(block => block.body.encryptedLogs);

// TODO(benesjan): nuke this check - it's here to verify that the filter is followed
blocks.forEach(block => {
if (block.number < from) {
throw new Error('Unexpected block number');
}
});

// Update latest tree roots from the most recent block
const latestBlock = blocks[blocks.length - 1];
await this.setHeaderFromBlock(latestBlock);
Expand Down

0 comments on commit 228fb80

Please sign in to comment.