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

Stop synchronizer blocking the sequencer #1794

Closed
arnaubennassar opened this issue Mar 10, 2023 · 0 comments · Fixed by #1836
Closed

Stop synchronizer blocking the sequencer #1794

arnaubennassar opened this issue Mar 10, 2023 · 0 comments · Fixed by #1836

Comments

@arnaubennassar
Copy link
Member

There is a window of time in which the sync blocks the sequencer:

  • From: a sequence is mined on L1, and the sequencer realises that the last virtual batch in the SC is greater than the one in the DB
  • To: The synchronizer catches up with the SC adds the latest virtual batch on the DB (after executing them!)

In a setup where there is sustained load on the network, this means that basically we've to process all the txs twice, making the sequencer work in intervals.

The sequencer should only wait if the last batch num < last virtual batch. If the trusted state is ahead of the virtual state there is no reason to wait, if something goes wrong, there will be a L2 reorg.

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