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

feat(l2): add deposit watcher checks #1205

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ManuelBilbao
Copy link
Contributor

Motivation

As L1 watcher may fall down and restart, we need to check if the events read from L1 were already processed or not.

Description

When the L1 watcher reads a new log, it will check pending logs on L1 to ensure it matches.

Closes #1190

@ManuelBilbao ManuelBilbao marked this pull request as ready for review November 19, 2024 15:22
@ManuelBilbao ManuelBilbao requested a review from a team as a code owner November 19, 2024 15:22
Copy link
Contributor

@fborello-lambda fborello-lambda left a comment

Choose a reason for hiding this comment

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

LGTM, left 1 comment

max_block_step: watcher_config.max_block_step,
last_block_fetched: U256::zero(),
l2_proposer_pk: watcher_config.l2_proposer_private_key,
l2_proposer_address: watcher_config.l2_proposer_address,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we are not using this variable. Should we remove the variable from the watcher_config and delete the env variable in the .env.example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

L1 Watcher should not add deposits to mempool that it has already processed
2 participants