Skip to content

Commit 9e388a9

Browse files
committed
f RB: Drop redundant length check
1 parent add9019 commit 9e388a9

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/wallet/mod.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -405,16 +405,6 @@ where
405405
log_error!(self.logger, "Failed to retrieve script payload: {}", e);
406406
})?;
407407

408-
let program_length = witness_program.program().len();
409-
if program_length != 20 {
410-
log_error!(
411-
self.logger,
412-
"Unexpected witness program length: {}",
413-
program_length
414-
);
415-
continue;
416-
}
417-
418408
let wpkh = WPubkeyHash::from_slice(&witness_program.program().as_bytes())
419409
.map_err(|e| {
420410
log_error!(self.logger, "Failed to retrieve script payload: {}", e);

0 commit comments

Comments
 (0)