pub async fn wait_for_epochs(
events: &mut (impl Stream<Item = Event<SeqTypes>> + Unpin),
epoch_height: u64,
target_epoch: u64,
)Expand description
Waits until a node has reached the given target epoch (exclusive).
The function returns once the first event indicates an epoch higher than target_epoch.