referrerpolicy=no-referrer-when-downgrade

Function wait_for_nth_session_change

Source
pub async fn wait_for_nth_session_change(
    blocks_sub: &mut StreamOfResults<Block<PolkadotConfig, OnlineClient<PolkadotConfig>>>,
    sessions_to_wait: u32,
) -> Result<(), Error>
Expand description

Wait for the first block with the Nth session change.

The session change is detected by inspecting the events in the block.