File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ impl<Pk: MiniscriptKey> Descriptor<Pk> {
300
300
}
301
301
302
302
/// Create new tr descriptor
303
- /// Errors when miniscript exceeds resource limits under Segwitv0 context
303
+ /// Errors when miniscript exceeds resource limits under Tap context
304
304
pub fn new_tr ( key : Pk , script : Option < tr:: TapTree < Pk > > ) -> Result < Self , Error > {
305
305
Ok ( Descriptor :: Tr ( Tr :: new ( key, script) ?) )
306
306
}
@@ -634,6 +634,7 @@ where
634
634
( "wpkh" , 1 ) => Descriptor :: Wpkh ( Wpkh :: from_tree ( top) ?) ,
635
635
( "sh" , 1 ) => Descriptor :: Sh ( Sh :: from_tree ( top) ?) ,
636
636
( "wsh" , 1 ) => Descriptor :: Wsh ( Wsh :: from_tree ( top) ?) ,
637
+ ( "tr" , _) => Descriptor :: Tr ( Tr :: from_tree ( top) ?) ,
637
638
_ => Descriptor :: Bare ( Bare :: from_tree ( top) ?) ,
638
639
} )
639
640
}
You can’t perform that action at this time.
0 commit comments