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
feat: introduce ChainEvent enum and update ChainNotifier broadcast type (#94)
* feat: introduce ChainEvent enum and update ChainNotifier broadcast type
Wrap NewBlockNotification in a ChainEvent enum so the broadcast channel
can carry both new-block and reorg notifications. Subscribers destructure
the enum and skip Reorg events for now (handling comes in later tickets).
Refs: ENG-1967
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: encapsulate ChainEvent construction in ChainNotifier
Address PR review feedback:
- Add public `send_new_block` that wraps internally
- Add public `send_reorg` for reorg notifications
- Make `send_event` private — callers use typed convenience methods
- Add comment on Reorg skip noting future PR coverage (ENG-1968)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments