Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 63c7eb2

Browse files
committed
make_merkle_branch
1 parent 9110f2d commit 63c7eb2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ledger/src/shred.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ mod stats;
8484
mod traits;
8585

8686
pub type Nonce = u32;
87-
const_assert_eq!(SIZE_OF_NONCE, 4);
88-
pub const SIZE_OF_NONCE: usize = std::mem::size_of::<Nonce>();
87+
pub const SIZE_OF_NONCE: usize = 4;
8988

9089
/// The following constants are computed by hand, and hardcoded.
9190
/// `test_shred_constants` ensures that the values are correct.

ledger/src/shred/merkle.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,10 @@ fn make_merkle_tree(nodes: Vec<Hash>) -> Vec<Hash> {
400400
tree
401401
}
402402

403+
fn make_merkle_branch(index: usize, tree: Vec<Hash>, mut size: usize) -> Option<MerkleBranch> {
404+
None
405+
}
406+
403407
#[cfg(test)]
404408
mod test {
405409
use super::*;

0 commit comments

Comments
 (0)