pub fn tx_add_output(slate: &mut Slate, commit: Commitment, proof: RangeProof) {
	let output = tx::Output {
		features: tx::OutputFeatures::Plain,
		commit,
		proof,
	};
	let outputs = slate.tx.outputs_mut();
	outputs
		.binary_search(&output)
		.err()
		.map(|e| outputs.insert(e, output));
}
/// Add an output to a tx at the appropriate position
Add an output to a tx at the appropriate position
Add an output to a tx at the appropriate position
pub fn tx_add_output(slate: &mut Slate, commit: Commitment, proof: RangeProof) {
	let output = tx::Output {
		features: tx::OutputFeatures::Plain,
		commit,
		proof,
	};
	let outputs = slate.tx.outputs_mut();
	outputs
		.binary_search(&output)
		.err()
		.map(|e| outputs.insert(e, output));
}
pub fn tx_add_output ( slate : & mut Slate , commit : Commitment , proof : RangeProof ) { let output = tx :: Output { features : tx :: OutputFeatures :: Plain , commit , proof , } ; let outputs = slate . tx . outputs_mut ( ) ; outputs . binary_search ( & output ) . err ( ) . map ( | e | outputs . insert ( e , output ) ) ; }
Add an output to a tx at the appropriate position
Add an output to a tx at the appropriate position
slate
&mut Slate
commit
Commitment
proof
RangeProof
slate
&mut Slate
commit
Commitment
proof
RangeProof