Reorganize message processor in prep for cross-program-invocation (#8338)

This commit is contained in:
Jack May
2020-02-21 11:30:00 -08:00
committed by GitHub
parent 3f04226864
commit 0e6aca5a7e
4 changed files with 213 additions and 265 deletions

View File

@ -72,7 +72,5 @@ fn test_accounts_hash_bank_hash(bencher: &mut Bencher) {
let mut pubkeys: Vec<Pubkey> = vec![];
create_test_accounts(&accounts, &mut pubkeys, 60000, 0);
let ancestors = vec![(0, 0)].into_iter().collect();
bencher.iter(|| {
accounts.verify_bank_hash(0, &ancestors);
});
bencher.iter(|| assert!(accounts.verify_bank_hash(0, &ancestors)));
}