add datapoint for corrupt vote_account (#4424)

This commit is contained in:
Rob Walker
2019-05-24 18:34:56 -07:00
committed by GitHub
parent 16b25d0874
commit 0302f13b97

View File

@ -120,6 +120,14 @@ impl Locktower {
} }
let vote_state = VoteState::from(&account); let vote_state = VoteState::from(&account);
if vote_state.is_none() { if vote_state.is_none() {
datapoint_warn!(
"locktower_warn",
(
"warn",
format!("Unable to get vote_state from account {}", key),
String
),
);
continue; continue;
} }
let mut vote_state = vote_state.unwrap(); let mut vote_state = vote_state.unwrap();