Skip to main content

forward_legacy_epoch_changes

Function forward_legacy_epoch_changes 

Source
async fn forward_legacy_epoch_changes<T, S>(
    legacy_event_rx: InactiveReceiver<Event<T>>,
    new_proto: Arc<RwLock<NewProtocol<T, S>>>,
    epoch_height: u64,
)
where T: NodeType, S: NewProtocolStorage<T>,
Expand description

Forward legacy epoch transitions into the coordinator so cliquenet keeps dialing the current validator set before cutover.

The parked coordinator’s event loop is not running yet, so its network is bumped directly under the state lock. Once the coordinator runs, it refreshes peers itself whenever a proposal validates, so this task ends. epoch_height == 0 disables forwarding.