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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

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