pub async fn wait_for_approval(
client: &Client,
hby: &mut Habery,
watch: &mut DelegationWatch,
interval: Duration,
timeout: Duration,
) -> Result<Vec<u8>, WatchError>Expand description
Poll the delegator’s witnesses every interval until the delegator has
approved, or timeout passes. Returns the approved event with its source
seal couple, for the delegate’s witnesses.
A witness that is unreachable or has nothing fully witnessed yet (keripy answers 404 until then) counts as pending.