mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 22:04:44 +00:00
Fix failing tree hash tests
This commit is contained in:
@@ -4,8 +4,8 @@ use crate::{ssz_encode, Encodable};
|
||||
impl CachedTreeHash for u64 {
|
||||
type Item = Self;
|
||||
|
||||
fn leaves_and_subtrees(&self) -> Vec<u8> {
|
||||
merkleize(ssz_encode(self))
|
||||
fn build_tree_hash_cache(&self) -> Result<TreeHashCache, Error> {
|
||||
Ok(TreeHashCache::from_bytes(merkleize(ssz_encode(self)))?)
|
||||
}
|
||||
|
||||
fn num_bytes(&self) -> usize {
|
||||
|
||||
Reference in New Issue
Block a user