Skip to content

Commit e44ae65

Browse files
amateimaamateima
and
amateima
authored
fix: disable gap detection (#404)
Co-authored-by: amateima <[email protected]>
1 parent 4458ad4 commit e44ae65

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Diff for: src/modules/scraper/adapter/messaging/BlocksEventsConsumer.ts

-6
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ export class BlocksEventsConsumer {
5151
@Process({ concurrency: 20 })
5252
private async process(job: Job<BlocksEventsQueueMessage>) {
5353
const { chainId, from, to } = job.data;
54-
55-
if (to - from >= 50_000) {
56-
this.logger.error(`Block range too big: ${from}-${to}`);
57-
return;
58-
}
59-
6054
const spokePoolConfigs = this.appConfig.values.web3.spokePoolContracts[chainId];
6155
const ascSpokePoolConfigs = spokePoolConfigs.sort((sp1, sp2) =>
6256
sp1.startBlockNumber < sp2.startBlockNumber ? -1 : 1,

Diff for: src/modules/scraper/module.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ import { DepositGapService } from "./service/DepositGapService";
6060
@Module({})
6161
export class ScraperModule {
6262
static forRoot(moduleOptions: ModuleOptions): DynamicModule {
63-
const crons = [QueuesMonitoringCron, DepositsGapDetectionCron];
63+
const crons = [
64+
QueuesMonitoringCron,
65+
// DepositsGapDetectionCron
66+
];
6467
const fixtures = [DepositGapCheckFixture];
6568
const providers: Provider<any>[] = [
6669
...crons,

0 commit comments

Comments
 (0)