Skip to main content

parse_circle_operation_row

Function parse_circle_operation_row 

Source
pub fn parse_circle_operation_row(
    stored_operation_id: &str,
    stored_circle_id: &str,
    prepared: &[u8],
    phase: &str,
    uploaded: BTreeSet<String>,
) -> Result<CircleOperationJournal, DbError>
Expand description

Rebuild one operation from the three places it is stored.

The stored ids are checked against the ones inside prepared rather than trusted: the columns are what queries dispatch on, so a row whose payload names a different operation or circle would route work at one identity and perform it at another.