Implement From<TapTree> for TaprootBuilder

This commit is contained in:
Dr Maxim Orlovsky 2022-04-05 22:46:26 +02:00
parent 410412ff01
commit a12e7c73b6
No known key found for this signature in database
GPG Key ID: FFC0250947E5C6F7
1 changed files with 7 additions and 0 deletions

View File

@ -125,6 +125,13 @@ impl PartialEq for TapTree {
impl Eq for TapTree {}
impl From<TapTree> for TaprootBuilder {
#[inline]
fn from(tree: TapTree) -> Self {
tree.into_builder()
}
}
impl TapTree {
/// Gets the inner node info as the builder is finalized.
pub fn node_info(&self) -> &NodeInfo {