ChainSafe / ChainSafe/gossamer

Introduce `SyncEvent` channel in current stream management system, utilize to implement `SyncEventStream.EventStream` on translation shim type.

Open
#4,803 0 comments 0 reactions 0 assignees View on GitHub
T-implementation
Dominant language
Go
Stars
454
Forks
144
PR merge metrics
No merged PRs in 30d

Description

## Issue summary

- blocked by #4802
- Create `SyncEvent` channel in translation shim which captures `SyncEvent` instances.
- These are the events that should be emitted from the sync engine.

## Implementation details

- Calls to `EventStream` is essentially registering a subscriber to all `SyncEvents`.
- `SyncEvent` instances must be copied and sent to all subscribers

## Other information and links

-

## Acceptance criteria

[] `SyncEvent` subscribers should be able to subscribe to `SyncEvents` by calling `EventStream`.
[] 70% unit test coverage on introduced methods and functionality.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.