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

[optimistic] Per-instance waitgroup inaccurately reflects status of optimistic processing #534

Open
michaelneuder opened this issue Sep 27, 2023 · 1 comment

Comments

@michaelneuder
Copy link
Collaborator

Describe the bug
As pointed out by Auston and Max of aestus relay, the current waitgroup design for handling optimistic block processing only works on a per-instance basis. In order to work as intended, some cross-process synchronization step is needed. Probably the best way to do this is through redis.

Expected behavior
The waitgroup is incremented up receipt of each optimistic builder submission:

api.optimisticBlocksWG.Add(1)

It is then waited on in a few places to try to ensure there is no outstanding optimistic blocks being processed:

api.optimisticBlocksWG.Wait()

Since there are multiple builder API and proposer API instances, the per-instance waitgroup isn't sufficient to ensure that all the optimistic blocks have been processed.

Additional context
Auston has explored changes to redis to handle this coordination: austonst@f52c977

@metachris
Copy link
Collaborator

makes sense to me, code looks good too if you think that's the right approach 👍

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

No branches or pull requests

2 participants