We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a89bd0 commit adf6ab5Copy full SHA for adf6ab5
src/util.rs
@@ -52,7 +52,7 @@ impl MsKeyBuilder for script::Builder {
52
// This belongs in rust-bitcoin, make this upstream later
53
pub(crate) fn script_is_v1_tr(s: &Script) -> bool {
54
let mut iter = s.instructions_minimal();
55
- if s.len() != 32
+ if s.len() != 34
56
|| iter.next() != Some(Ok(Instruction::Op(opcodes::all::OP_PUSHNUM_1)))
57
|| iter.next() != Some(Ok(Instruction::Op(opcodes::all::OP_PUSHBYTES_32)))
58
{
0 commit comments