Promote some datapoints to info to fix dashboard (#8381)

automerge
This commit is contained in:
Pankaj Garg
2020-02-21 13:41:49 -08:00
committed by GitHub
parent 0ace22d03f
commit aa80f69171
10 changed files with 37 additions and 26 deletions

View File

@ -1,6 +1,9 @@
pub mod vote_instruction;
pub mod vote_state;
#[macro_use]
extern crate solana_metrics;
use crate::vote_instruction::process_instruction;
solana_sdk::declare_program!(

View File

@ -8,7 +8,7 @@ use crate::{
use log::*;
use num_derive::{FromPrimitive, ToPrimitive};
use serde_derive::{Deserialize, Serialize};
use solana_metrics::datapoint_debug;
use solana_metrics::inc_new_counter_info;
use solana_sdk::{
account::{get_signers, KeyedAccount},
instruction::{AccountMeta, Instruction, InstructionError, WithSigner},
@ -209,7 +209,7 @@ pub fn process_instruction(
vote_state::update_node(me, &node_pubkey, &signers)
}
VoteInstruction::Vote(vote) => {
datapoint_debug!("vote-native", ("count", 1, i64));
inc_new_counter_info!("vote-native", 1);
vote_state::process_vote(
me,
&SlotHashes::from_keyed_account(next_keyed_account(keyed_accounts)?)?,