refactor(node/service): remove SequencerActorBuilder#3152
Conversation
Codecov Report❌ Patch coverage is
☔ View full report in Codecov by Sentry. |
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.
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.
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.
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.
theochap
left a comment
There was a problem hiding this comment.
Love the negative diff, a few comments
c9bd913 to
9507503
Compare
closes #3151