mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-30 11:24:31 +00:00
fixed tree_hash() for Vec<T> and a couple of other issues
This commit is contained in:
@@ -29,7 +29,7 @@ impl TreeHash for ShardAndCommittee {
|
||||
result.append(&mut self.shard.tree_hash());
|
||||
result.append(&mut merkle_hash(&mut committee_ssz_items));
|
||||
|
||||
result.tree_hash()
|
||||
result.as_slice().tree_hash()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ impl TreeHash for ValidatorRecord {
|
||||
balance.resize(16, 0);
|
||||
ssz.append(&mut balance);
|
||||
|
||||
ssz.tree_hash()
|
||||
ssz.as_slice().tree_hash()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user