File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -327,9 +327,9 @@ impl Serialize for TapTree {
327
327
//
328
328
// TaprootMerkleBranch can only have len atmost 128(TAPROOT_CONTROL_MAX_NODE_COUNT).
329
329
// safe to cast from usize to u8
330
- buf. push ( leaf_info. merkle_branch . as_inner ( ) . len ( ) as u8 ) ;
331
- buf. push ( leaf_info. ver . to_consensus ( ) ) ;
332
- leaf_info. script . consensus_encode ( & mut buf) . expect ( "Vecs dont err" ) ;
330
+ buf. push ( leaf_info. merkle_branch ( ) . as_inner ( ) . len ( ) as u8 ) ;
331
+ buf. push ( leaf_info. leaf_version ( ) . to_consensus ( ) ) ;
332
+ leaf_info. script ( ) . consensus_encode ( & mut buf) . expect ( "Vecs dont err" ) ;
333
333
}
334
334
buf
335
335
}
Original file line number Diff line number Diff line change @@ -610,11 +610,11 @@ impl NodeInfo {
610
610
#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
611
611
pub struct LeafInfo {
612
612
/// The underlying script.
613
- pub ( crate ) script : Script ,
613
+ script : Script ,
614
614
/// The leaf version.
615
- pub ( crate ) ver : LeafVersion ,
615
+ ver : LeafVersion ,
616
616
/// The merkle proof (hashing partners) to get this node.
617
- pub ( crate ) merkle_branch : TaprootMerkleBranch ,
617
+ merkle_branch : TaprootMerkleBranch ,
618
618
}
619
619
620
620
impl LeafInfo {
You can’t perform that action at this time.
0 commit comments