Skip to main content

ensure_accepted_async

Function ensure_accepted_async 

Source
pub async fn ensure_accepted_async(
    chain_terms_hash: B256,
    accept_flag: bool,
) -> Result<()>
Expand description

Async wrapper over ensure_accepted. The interactive branch does blocking stdin/stderr IO, so run the whole gate on a blocking thread rather than parking a tokio runtime worker while it waits for the operator.

§Errors

Propagates ensure_accepted’s errors; also errors if the blocking task panics.