Code cleanup: In vote and stake processor (#23353)

* Enable benchmarks of vote processor.

* Inlines from_keyed_account() in stake instruction.
This commit is contained in:
Alexander Meißner
2022-02-25 21:05:05 +01:00
committed by GitHub
parent 0ad4757159
commit 569d531573
3 changed files with 9 additions and 26 deletions

View File

@@ -122,7 +122,6 @@ fn bench_process_vote_instruction(
}
#[bench]
#[ignore]
fn bench_process_vote(bencher: &mut Bencher) {
let (num_initial_votes, slot_hashes, transaction_accounts, instruction_accounts) =
create_accounts();
@@ -151,7 +150,6 @@ fn bench_process_vote(bencher: &mut Bencher) {
}
#[bench]
#[ignore]
fn bench_process_vote_state_update(bencher: &mut Bencher) {
let (num_initial_votes, slot_hashes, transaction_accounts, instruction_accounts) =
create_accounts();