Skip to content

Commit

Permalink
tr fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
sanket1729 committed Feb 4, 2022
1 parent 51e0b08 commit abe64dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/descriptor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ impl<Pk: MiniscriptKey> Descriptor<Pk> {
}

/// Create new tr descriptor
/// Errors when miniscript exceeds resource limits under Segwitv0 context
/// Errors when miniscript exceeds resource limits under Tap context
pub fn new_tr(key: Pk, script: Option<tr::TapTree<Pk>>) -> Result<Self, Error> {
Ok(Descriptor::Tr(Tr::new(key, script)?))
}
Expand Down Expand Up @@ -634,6 +634,7 @@ where
("wpkh", 1) => Descriptor::Wpkh(Wpkh::from_tree(top)?),
("sh", 1) => Descriptor::Sh(Sh::from_tree(top)?),
("wsh", 1) => Descriptor::Wsh(Wsh::from_tree(top)?),
("tr", _) => Descriptor::Tr(Tr::from_tree(top)?),
_ => Descriptor::Bare(Bare::from_tree(top)?),
})
}
Expand Down

0 comments on commit abe64dd

Please sign in to comment.