mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 11:41:51 +00:00
12 lines
233 B
Rust
12 lines
233 B
Rust
use cached_tree_hash::TreeHashCache;
|
|
use ethereum_types::H256 as Hash256;
|
|
use tree_hash::TreeHash;
|
|
|
|
fn main() {
|
|
let n = 2048;
|
|
|
|
let vec: Vec<Hash256> = (0..n).map(|_| Hash256::random()).collect();
|
|
|
|
vec.tree_hash_root();
|
|
}
|