move hashing functionality to accounts_hash (#15353)
This commit is contained in:
committed by
GitHub
parent
8367740ff9
commit
7fee0bc69c
@ -1,7 +1,7 @@
|
||||
extern crate log;
|
||||
use clap::{crate_description, crate_name, value_t, App, Arg};
|
||||
use solana_measure::measure::Measure;
|
||||
use solana_runtime::accounts_db::AccountsDB;
|
||||
use solana_runtime::accounts_hash::AccountsHash;
|
||||
use solana_sdk::{hash::Hash, pubkey::Pubkey};
|
||||
|
||||
fn main() {
|
||||
@ -36,7 +36,7 @@ fn main() {
|
||||
let hashes = hashes.clone(); // done outside timing
|
||||
let mut time = Measure::start("compute_merkle_root");
|
||||
let fanout = 16;
|
||||
AccountsDB::compute_merkle_root(hashes, fanout);
|
||||
AccountsHash::compute_merkle_root(hashes, fanout);
|
||||
time.stop();
|
||||
time.as_us()
|
||||
})
|
||||
|
Reference in New Issue
Block a user