From 4f21d97019df84341cb64b93a3f7efb0958b4fa2 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Thu, 21 Oct 2021 08:55:27 +0200 Subject: [PATCH] processing: remove the check for duplicated inputs It's now performed by revault_tx --- src/processing.rs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/processing.rs b/src/processing.rs index 9062c2d..050748b 100644 --- a/src/processing.rs +++ b/src/processing.rs @@ -61,23 +61,6 @@ pub fn process_sign_message( // Gather what signatures we have for these prevouts let mut signatures = Vec::with_capacity(n_inputs); for txin in spend_tx.tx().input.iter() { - if spend_tx - .tx() - .input - .iter() - .filter_map(|curr| { - if curr.previous_output == txin.previous_output { - Some(curr) - } else { - None - } - }) - .count() - > 1 - { - return Err(SignProcessingError::Garbage); - } - if let Some(signed_op) = db_signed_outpoint(&db_path, &txin.previous_output) .map_err(SignProcessingError::Database)? {