Skip to content

Commit

Permalink
first time running will choose latest block
Browse files Browse the repository at this point in the history
  • Loading branch information
cauta committed May 3, 2024
1 parent 1b5ae74 commit fac1d74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/apps/onebox/src/polling.block/polling.block.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class PollingBlockService {
blockSync = await this.blockSyncService.create({
rpcUrl: this.rpcUrl,
chain: SupportedChain.ETH.name,
lastSync: parseInt(process.env.EVM_START_BLOCK),
lastSync: await this.getBlockNumber(),
});
}
// checking force latest block config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class PolygonPollingBlockService {
blockSync = await this.blockSyncService.create({
rpcUrl: this.rpcUrl,
chain: SupportedChain.POLYGON.name,
lastSync: parseInt(process.env.POLYGON_START_BLOCK),
lastSync: await this.getBlockNumber(),
});
}
// checking force latest block config
Expand Down

0 comments on commit fac1d74

Please sign in to comment.