Skip to content

Commit

Permalink
move hashing functionality to accounts_hash (#15353)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington authored Feb 17, 2021
1 parent 8367740 commit 7fee0bc
Show file tree
Hide file tree
Showing 4 changed files with 1,579 additions and 1,538 deletions.
4 changes: 2 additions & 2 deletions merkle-root-bench/src/main.rs
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down Expand Up @@ -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()
})
Expand Down
Loading

0 comments on commit 7fee0bc

Please sign in to comment.