Skip to main content

withdraw

Function withdraw 

Source
pub(crate) fn withdraw(id: &str, block_id: &str) -> Result<(), String>
Expand description

The agent that asked takes request id on block_id back: it ends as Cancelled, marked as the agent’s own doing (Settled::by_agent) in the same step that takes the answer, so a person’s Cancel that got there first is never read as the agent’s, and the other way round. Fails like resolve when the request is already answered.