Add Hash wrapper and supporting traits

This commit is contained in:
Tyera Eulberg
2018-08-01 12:23:52 -06:00
committed by Grimes
parent 4d77fa900b
commit 448b8b1c17
8 changed files with 36 additions and 16 deletions

View File

@@ -12,7 +12,7 @@ use std::collections::VecDeque;
fn bench_block_to_blobs_to_block(bencher: &mut Bencher) {
let zero = Hash::default();
let one = hash(&zero);
let one = hash(&zero.as_ref());
let keypair = KeyPair::new();
let tx0 = Transaction::new(&keypair, keypair.pubkey(), 1, one);
let transactions = vec![tx0; 10];