[][src]Function grin_core::core::transaction::cut_through

pub fn cut_through(
    inputs: &mut Vec<Input>,
    outputs: &mut Vec<Output>
) -> Result<(), Error>

Matches any output with a potential spending input, eliminating them from the Vec. Provides a simple way to cut-through a block or aggregated transaction. The elimination is stable with respect to the order of inputs and outputs.