-
Notifications
You must be signed in to change notification settings - Fork 203
refactor(node/service): remove SequencerActorBuilder #3152
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great.
Only small nitpicks, so please address as you see fit and merge after you verify tests pass 👍
77c3d92 to
86c67be
Compare
86c67be to
c9bd913
Compare
| )?, | ||
| unsafe_head_rx: unsafe_head_rx.ok_or( | ||
| "unsafe_head_rx is None in sequencer mode. This should never happen.".to_string(), | ||
| )?, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add an issue to add type-safety to ensure this actually never happens and we don't need to return an error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to be moved into the if self.mode().is_sequencer() block or else it will break kona-node when run as a validator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add an issue...
I think the easiest approach here is to:
- always create these channels
- inject the other end into the
EngineActor - Only use them if
self.mode().is_sequencer()
Since spawn_and_wait! hangs, the sequencer side won't be dropped if running as a validator, but we should probably handle that case gracefully (continuing on rather than erring) in EngineActor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
theochap
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the negative diff, a few comments
c9bd913 to
9507503
Compare
closes #3151