pub async fn assert_relay_parent_offset(
relay_client: &OnlineClient<PolkadotConfig>,
para_client: &OnlineClient<PolkadotConfig>,
offset: u32,
block_limit: u32,
) -> Result<(), Error>
Expand description
Asserts that parachain blocks have the correct relay parent offset.
§Arguments
relay_client
- Client connected to a relay chain nodepara_client
- Client connected to a parachain nodeoffset
- Expected minimum offset between relay parent and highest seen relay blockblock_limit
- Number of parachain blocks to verify before completing