Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Nov 8, 2024
1 parent b6d8254 commit 073591a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sia/src/rhp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ pub fn sector_root(sector: &[u8]) -> Hash256 {
for (j, input) in inputs.iter_mut().enumerate() {
input[0] = NODE_HASH_PREFIX[0];
let step = j * chunk_size / 2;
input[1..33].copy_from_slice(&nodes[step].as_ref());
input[33..65].copy_from_slice(&nodes[step + chunk_size / 4].as_ref());
input[1..33].copy_from_slice(nodes[step].as_ref());
input[33..65].copy_from_slice(nodes[step + chunk_size / 4].as_ref());
}

// hash them
Expand All @@ -67,11 +67,11 @@ pub fn sector_root(sector: &[u8]) -> Hash256 {
chunk_size *= 2;
}
// hash last two nodes into roots
Hash256::from(sum_node(
sum_node(
&params,
&tree_hashes[0],
&tree_hashes[tree_hashes.len() / 2],
))
)
}

#[cfg(test)]
Expand Down

0 comments on commit 073591a

Please sign in to comment.