Skip to content

Commit

Permalink
make_merkle_branch
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadnouri committed May 30, 2022
1 parent 9110f2d commit 63c7eb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions ledger/src/shred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ mod stats;
mod traits;

pub type Nonce = u32;
const_assert_eq!(SIZE_OF_NONCE, 4);
pub const SIZE_OF_NONCE: usize = std::mem::size_of::<Nonce>();
pub const SIZE_OF_NONCE: usize = 4;

/// The following constants are computed by hand, and hardcoded.
/// `test_shred_constants` ensures that the values are correct.
Expand Down
4 changes: 4 additions & 0 deletions ledger/src/shred/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ fn make_merkle_tree(nodes: Vec<Hash>) -> Vec<Hash> {
tree
}

fn make_merkle_branch(index: usize, tree: Vec<Hash>, mut size: usize) -> Option<MerkleBranch> {
None
}

#[cfg(test)]
mod test {
use super::*;
Expand Down

0 comments on commit 63c7eb2

Please sign in to comment.