Skip to main content

adjudicate

Function adjudicate 

Source
pub fn adjudicate(
    state: &Path,
    command_hash: &str,
    observation_id: u64,
    real_interaction: bool,
) -> Result<Value, String>
Expand description

Appends one ground-truth decision for a flagged observation and rebuilds the receipt. true means a real interaction; false means spurious.

ยงErrors

The id is absent, unflagged, already adjudicated, or state cannot be durably updated.