ralexstokes / ethereum-consensus

Apache License 2.0
136 stars 51 forks source link

Implement a broadcast/subscription interface to `clock::Clock` #394

Open ralexstokes opened 4 months ago

ralexstokes commented 4 months ago

It could be nice to have a way to broadcast clock events (new slot, new epoch) similar to how we stream slots.

I have this example handy so I'll link here: https://github.com/paradigmxyz/reth/blob/main/crates/payload/builder/src/events.rs

it would kind of look like this; just for the clock events, rather than payload events