File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -579,7 +579,7 @@ impl NodeInfo {
579
579
pub fn new_leaf_with_ver ( script : Script , ver : LeafVersion ) -> Self {
580
580
let leaf = LeafInfo :: new ( script, ver) ;
581
581
Self {
582
- hash : leaf. hash ( ) ,
582
+ hash : sha256 :: Hash :: from_inner ( leaf. leaf_hash ( ) . into_inner ( ) ) ,
583
583
leaves : vec ! [ leaf] ,
584
584
has_hidden_nodes : false ,
585
585
}
@@ -628,9 +628,9 @@ impl LeafInfo {
628
628
}
629
629
630
630
/// Computes a leaf hash for this [`LeafInfo`].
631
- fn hash ( & self ) -> sha256 :: Hash {
632
- let leaf_hash = TapLeafHash :: from_script ( & self . script , self . ver ) ;
633
- sha256 :: Hash :: from_inner ( leaf_hash . into_inner ( ) )
631
+ # [ inline ]
632
+ pub fn leaf_hash ( & self ) -> TapLeafHash {
633
+ TapLeafHash :: from_script ( & self . script , self . ver )
634
634
}
635
635
}
636
636
You can’t perform that action at this time.
0 commit comments