Skip to content

Commit

Permalink
Merge pull request #146 from LNP-BP/feat/buoy-generic
Browse files Browse the repository at this point in the history
Remove default generic from MerkleBuoy
  • Loading branch information
dr-orlovsky authored Oct 28, 2023
2 parents 387ed70 + c747574 commit b03c200
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions commit_verify/src/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,8 @@ where T: CommitmentId<Id = MerkleNode> + Copy
}

/// Helper struct to track depth when working with Merkle blocks.
// TODO: v0.11 Remove default generic from MerkleBuoy
#[derive(Clone, PartialEq, Eq, Debug, Default)]
pub struct MerkleBuoy<D: Copy + Eq + SubAssign<u8> + Default = u5> {
pub struct MerkleBuoy<D: Copy + Eq + SubAssign<u8> + Default> {
buoy: D,
stack: Option<Box<MerkleBuoy<D>>>,
}
Expand Down

0 comments on commit b03c200

Please sign in to comment.