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> {
300300    } 
301301
302302    /// Create new tr descriptor 
303- /// Errors when miniscript exceeds resource limits under Segwitv0  context 
303+ /// Errors when miniscript exceeds resource limits under Tap  context 
304304pub  fn  new_tr ( key :  Pk ,  script :  Option < tr:: TapTree < Pk > > )  -> Result < Self ,  Error >  { 
305305        Ok ( Descriptor :: Tr ( Tr :: new ( key,  script) ?) ) 
306306    } 
@@ -634,6 +634,7 @@ where
634634            ( "wpkh" ,  1 )  => Descriptor :: Wpkh ( Wpkh :: from_tree ( top) ?) , 
635635            ( "sh" ,  1 )  => Descriptor :: Sh ( Sh :: from_tree ( top) ?) , 
636636            ( "wsh" ,  1 )  => Descriptor :: Wsh ( Wsh :: from_tree ( top) ?) , 
637+             ( "tr" ,  _)  => Descriptor :: Tr ( Tr :: from_tree ( top) ?) , 
637638            _ => Descriptor :: Bare ( Bare :: from_tree ( top) ?) , 
638639        } ) 
639640    } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments