Skip to content

Commit

Permalink
processing: remove the check for duplicated inputs
Browse files Browse the repository at this point in the history
It's now performed by revault_tx
  • Loading branch information
darosior committed Oct 28, 2021
1 parent f813fd4 commit 4f21d97
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?
{
Expand Down

0 comments on commit 4f21d97

Please sign in to comment.