mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
added generic header (#12897)
Co-authored-by: router <router@router.ian>
This commit is contained in:
@ -155,7 +155,9 @@ impl<N: NodePrimitives> CanonStateNotification<N> {
|
|||||||
|
|
||||||
/// Wrapper around a broadcast receiver that receives fork choice notifications.
|
/// Wrapper around a broadcast receiver that receives fork choice notifications.
|
||||||
#[derive(Debug, Deref, DerefMut)]
|
#[derive(Debug, Deref, DerefMut)]
|
||||||
pub struct ForkChoiceNotifications(pub watch::Receiver<Option<SealedHeader>>);
|
pub struct ForkChoiceNotifications<T = alloy_consensus::Header>(
|
||||||
|
pub watch::Receiver<Option<SealedHeader<T>>>,
|
||||||
|
);
|
||||||
|
|
||||||
/// A trait that allows to register to fork choice related events
|
/// A trait that allows to register to fork choice related events
|
||||||
/// and get notified when a new fork choice is available.
|
/// and get notified when a new fork choice is available.
|
||||||
|
|||||||
Reference in New Issue
Block a user