optimistic-specs
optimistic-specs copied to clipboard
Subcomponent lifecycle managements
We have several sub-components that exist as go-routines / separate threads. We need to close them on application end, but right now it's not clear which component closes what.
In addition, we don't properly wait for things to be closed:
- https://github.com/ethereum-optimism/optimistic-specs/pull/275#discussion_r839034686
- https://github.com/ethereum-optimism/optimistic-specs/blob/95834ed431755f868cd93f016f420436fda38273/opnode/rollup/driver/state.go#L150 (need to wait for bss to be shut)