Skip to content

Commit

Permalink
watcher: arbitrum batch size increase
Browse files Browse the repository at this point in the history
  • Loading branch information
panoel committed Jan 19, 2024
1 parent 63d9a16 commit 9cae755
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions watcher/src/watchers/ArbitrumWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class ArbitrumWatcher extends EVMWatcher {
this.latestL2Finalized = 0;
this.l1L2Map = new Map<number, number>();
this.lastEthTime = 0;
this.maximumBatchSize = 25;
this.maximumBatchSize = 1000;
}

async getFinalizedBlockNumber(): Promise<number> {
Expand Down Expand Up @@ -58,7 +58,9 @@ export class ArbitrumWatcher extends EVMWatcher {
// Only update the map, if the L2 block number is newer
const inMapL2 = this.l1L2Map.get(associatedL1);
if (!inMapL2 || inMapL2 < l2BlkNum) {
this.logger.debug(`Updating map with ${associatedL1} => ${l2BlkNum}`);
this.logger.debug(
`Updating map with ${associatedL1} => ${l2BlkNum}, size = ${this.l1L2Map.size}`
);
this.l1L2Map.set(associatedL1, l2BlkNum);
}

Expand Down

0 comments on commit 9cae755

Please sign in to comment.