Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: added caching for l1 blocks for l2-bridge-optimism #581

Closed
wants to merge 1 commit into from

Conversation

sergeyWh1te
Copy link
Contributor

Screenshot 2024-07-08 at 12 56 46 Screenshot 2024-07-08 at 15 05 05

Fix for drpc rateLimiting

@sergeyWh1te sergeyWh1te requested a review from a team as a code owner July 8, 2024 12:05
@sergeyWh1te sergeyWh1te requested a review from TheDZhon July 8, 2024 12:05
@sergeyWh1te sergeyWh1te force-pushed the fix-l1-provider-opt branch 6 times, most recently from 6d59075 to 469f041 Compare July 8, 2024 12:59
Copy link
Contributor

@TheDZhon TheDZhon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though suggest to add logging block timestamps

@@ -65,33 +65,44 @@ export class BlockHandler {

const findings: Finding[] = []

this.logger.info(`#Optimism block: ${l2blockDtoEvent.number}`)
this.logger.info(
`#Optimism block: ${l2blockDtoEvent.number} at ${new Date(l2blockDtoEvent.timestamp * 1000).toUTCString()}`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we log l2Block.timestamp too?

l1BlockNumber.right,
l2blockDtoEvent.number,
this.logger.info(
`#ETH block: ${l1BlockNumber.right.number} at ${new Date(l1BlockNumber.right.timestamp * 1000).toUTCString()}`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we log l1Block.timestamp too?

@sergeyWh1te sergeyWh1te deleted the fix-l1-provider-opt branch August 15, 2024 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants