Skip to content

Commit 93e8698

Browse files
committed
f Remove redundant check for witness inputs
1 parent bffabfd commit 93e8698

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/wallet.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,6 @@ where
126126
}
127127
};
128128

129-
// We double-check that no inputs try to spend non-witness outputs. As we use a SegWit
130-
// wallet descriptor this technically shouldn't ever happen, but better safe than sorry.
131-
for input in &psbt.inputs {
132-
if input.witness_utxo.is_none() {
133-
log_error!(self.logger, "Tried to spend a non-witness funding output. This must not ever happen. Panicking!");
134-
panic!("Tried to spend a non-witness funding output. This must not ever happen.");
135-
}
136-
}
137-
138129
if !locked_wallet.sign(&mut psbt, SignOptions::default())? {
139130
return Err(Error::FundingTxCreationFailed);
140131
}

0 commit comments

Comments
 (0)