You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: make sure all blocking chan calls are also watching for shutdown signals (#1328)
In the spirit of shutdown handling, I did a quick audit of the codebase
for places where we had blocking channel calls and put them into select
statements so that we can also watch for a shutdown signal.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
- **New Features**
- Introduced a new "DA Included" status for blocks, indicating a higher
level of finality.
- Added support for out-of-order rollup blocks on DA and a termination
condition related to sequencer double-signing.
- Implemented a new `BlockSyncService` with functions to start syncing
and handle block storage and broadcasting.
- Created a `NewPendingBlocks` function to manage blocks that need to be
published to the DA layer.
- **Improvements**
- Improved error handling by checking for context completion before
sending data to channels, ensuring more informative error messages.
- Enhanced the block confirmation process and block retrieval mechanism
with updated terminology and functionality.
- **Refactor**
- Renamed various functions and methods to better reflect their purpose,
such as `store.GetState`, `Manager.IsDAIncluded`, and
`Manager.BlockStoreRetrieveLoop`.
- Removed unused functions like `Manager.saveValidatorsToStore` and
`Manager.getLastStateValidators`.
- **Bug Fixes**
- Fixed potential goroutine leaks by handling context cancellation in
`newTxValidator`, `BroadcastTxCommit`, and `BroadcastTxSync` functions.
- **Tests**
- Updated test assertions from `assert` to `require` to ensure immediate
failure upon encountering errors during testing.
- **Documentation**
- Updated documentation to reflect changes in block confirmation
terminology and the introduction of the "DA Included" concept.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
0 commit comments