Skip to content

Commit

Permalink
Renable assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
sanket1729 committed Oct 21, 2022
1 parent 5430285 commit a37867a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/descriptor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2109,4 +2109,9 @@ pk(03f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8))";
"eltr(020000000000000000000000000000000000000000000000000000000000000002)",
);
}

#[test]
fn test_regression_29() {
let _ = Descriptor::<String>::from_str("eltr(,thresh(1,spk_eq(,00)))");
}
}
2 changes: 1 addition & 1 deletion src/miniscript/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ impl Property for Type {
debug_assert!(self.mall.dissat == Dissat::None || self.corr.base != Base::V);
debug_assert!(self.mall.safe || self.corr.base != Base::K);
// Not true for covenant scripts. Covenant scripts have zero inputs, but are still malleable
// debug_assert!(self.mall.non_malleable || self.corr.input != Input::Zero);
debug_assert!(self.mall.non_malleable || self.corr.input != Input::Zero);
}

fn from_true() -> Self {
Expand Down

0 comments on commit a37867a

Please sign in to comment.