fn validate_output(&self, output: &Output) -> Result<(), Error> {
		if let Ok(pos) = self.batch.get_output_pos(&output.commitment()) {
			if let Some(out_mmr) = self.pmmr.get_data(pos) {
				if out_mmr.commitment() == output.commitment() {
					return Err(ErrorKind::DuplicateCommitment(output.commitment()).into());
				}
			}
		}
		Ok(())
	}
// Output is valid if it would not result in a duplicate commitment in the output MMR.
Output is valid if it would not result in a duplicate commitment in the output MMR.
Output is valid if it would not result in a duplicate commitment in the output MMR .
fn validate_output(&self, output: &Output) -> Result<(), Error> {
		if let Ok(pos) = self.batch.get_output_pos(&output.commitment()) {
			if let Some(out_mmr) = self.pmmr.get_data(pos) {
				if out_mmr.commitment() == output.commitment() {
					return Err(ErrorKind::DuplicateCommitment(output.commitment()).into());
				}
			}
		}
		Ok(())
	}
fn validate_output ( & self , output : & Output ) -> Result < ( ) , Error > { if let Ok ( pos ) = self . batch . get_output_pos ( & output . commitment ( ) ) { if let Some ( out_mmr ) = self . pmmr . get_data ( pos ) { if out_mmr . commitment ( ) == output . commitment ( ) { return Err ( ErrorKind :: DuplicateCommitment ( output . commitment ( ) ) . into ( ) ) ; } } } Ok ( ( ) ) }
Output is valid if it would not result in a duplicate commitment in the output MMR.
Output is valid if it would not result in a duplicate commitment in the output MMR .
&self
output
&Output