File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -205,6 +205,7 @@ where T: CommitmentId<Id = MerkleNode> + Copy
205
205
}
206
206
207
207
/// Helper struct to track depth when working with Merkle blocks.
208
+ // TODO: v0.11 Remove default generic from MerkleBuoy
208
209
#[ derive( Clone , PartialEq , Eq , Debug ) ]
209
210
pub struct MerkleBuoy < D : Copy + Eq + SubAssign < u8 > + Default = u5 > {
210
211
buoy : D ,
Original file line number Diff line number Diff line change @@ -430,7 +430,7 @@ impl MerkleBlock {
430
430
}
431
431
Ordering :: Less => {
432
432
cross_section. push ( n2) ;
433
- let mut buoy = MerkleBuoy :: new ( n2_depth) ;
433
+ let mut buoy = MerkleBuoy :: < u5 > :: new ( n2_depth) ;
434
434
let mut stop = false ;
435
435
last_b = None ;
436
436
cross_section. extend ( b. by_ref ( ) . take_while ( |n| {
@@ -448,7 +448,7 @@ impl MerkleBlock {
448
448
}
449
449
Ordering :: Greater => {
450
450
cross_section. push ( n1) ;
451
- let mut buoy = MerkleBuoy :: new ( n1_depth) ;
451
+ let mut buoy = MerkleBuoy :: < u5 > :: new ( n1_depth) ;
452
452
let mut stop = false ;
453
453
last_a = None ;
454
454
cross_section. extend ( a. by_ref ( ) . take_while ( |n| {
You can’t perform that action at this time.
0 commit comments