remove vote instruction counters
This commit is contained in:
parent
e52157b98b
commit
1ea7e7c887
|
@ -3,7 +3,6 @@
|
|||
use {
|
||||
crate::{id, vote_instruction::VoteInstruction, vote_state},
|
||||
log::*,
|
||||
solana_metrics::inc_new_counter_info,
|
||||
solana_program_runtime::{
|
||||
invoke_context::InvokeContext, sysvar_cache::get_sysvar_with_account_check,
|
||||
},
|
||||
|
@ -60,7 +59,6 @@ pub fn process_instruction(
|
|||
vote_state::update_commission(&mut me, commission, &signers)
|
||||
}
|
||||
VoteInstruction::Vote(vote) | VoteInstruction::VoteSwitch(vote, _) => {
|
||||
inc_new_counter_info!("vote-native", 1);
|
||||
let slot_hashes =
|
||||
get_sysvar_with_account_check::slot_hashes(invoke_context, instruction_context, 1)?;
|
||||
let clock =
|
||||
|
@ -80,7 +78,6 @@ pub fn process_instruction(
|
|||
.feature_set
|
||||
.is_active(&feature_set::allow_votes_to_directly_update_vote_state::id())
|
||||
{
|
||||
inc_new_counter_info!("vote-state-native", 1);
|
||||
let sysvar_cache = invoke_context.get_sysvar_cache();
|
||||
let slot_hashes = sysvar_cache.get_slot_hashes()?;
|
||||
let clock = sysvar_cache.get_clock()?;
|
||||
|
|
Loading…
Reference in New Issue