fixed tree_hash() for Vec<T> and a couple of other issues

This commit is contained in:
mjkeating
2018-12-09 10:12:41 -08:00
parent 68629acebe
commit c961c87307
4 changed files with 15 additions and 24 deletions

View File

@@ -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()
}
}

View File

@@ -77,7 +77,7 @@ impl TreeHash for ValidatorRecord {
balance.resize(16, 0);
ssz.append(&mut balance);
ssz.tree_hash()
ssz.as_slice().tree_hash()
}
}