mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 18:21:45 +00:00
Fix merkle_proof for eth2_hashing refactor (#593)
This commit is contained in:
@@ -124,7 +124,10 @@ impl MerkleTree {
|
||||
// All other possibilities are invalid MerkleTrees
|
||||
(_, _) => return Err(MerkleTreeError::Invalid),
|
||||
};
|
||||
*hash = hash_concat(left.hash(), right.hash());
|
||||
hash.assign_from_slice(&hash_concat(
|
||||
left.hash().as_bytes(),
|
||||
right.hash().as_bytes(),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user