Fix bug with bitfield tree hash caching

This commit is contained in:
Paul Hauner
2019-04-26 17:27:39 +10:00
parent dddcc91ef3
commit d3309b9f7e
3 changed files with 4 additions and 4 deletions

View File

@@ -287,14 +287,12 @@ mod tests {
let mut hasher = cached_tree_hash::CachedTreeHasher::new(&original).unwrap();
assert_eq!(hasher.tree_hash_root().unwrap(), original.tree_hash_root());
/*
let modified = BooleanBitfield::from_bytes(&vec![2; 1][..]);
hasher.update(&modified).unwrap();
assert_eq!(hasher.tree_hash_root().unwrap(), modified.tree_hash_root());
*/
}
#[test]